blob: 519dcf67e3df8760eb9b10520181d5123b4aec5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#ifndef CLIENT_H
#define CLIENT_H
#include <stdbool.h>
#include <stdint.h>
#include "color.h"
#include "entry.h"
#include "image.h"
#include "surface.h"
#include "wlr-layer-shell-unstable-v1.h"
struct tofi {
/* Globals */
struct wl_display *wl_display;
struct wl_registry *wl_registry;
struct wl_compositor *wl_compositor;
struct wl_seat *wl_seat;
struct wl_output *wl_output;
struct wl_shm *wl_shm;
struct zwlr_layer_shell_v1 *zwlr_layer_shell;
/* Objects */
struct wl_keyboard *wl_keyboard;
struct wl_pointer *wl_pointer;
/* State */
bool submit;
bool closed;
struct {
struct surface surface;
struct zwlr_layer_surface_v1 *zwlr_layer_surface;
struct color background_color;
struct entry entry;
uint32_t width;
uint32_t height;
uint32_t scale;
int32_t x;
int32_t y;
} window;
/* Keyboard state */
struct xkb_state *xkb_state;
struct xkb_context *xkb_context;
struct xkb_keymap *xkb_keymap;
/* Options */
int anchor;
bool hide_cursor;
};
#endif /* CLIENT_H */
|