Initialize seat pointer in swaybar

This commit is contained in:
Drew DeVault 2018-03-30 21:38:28 -04:00
parent 4b0fcde778
commit 8d1425bde9
4 changed files with 118 additions and 2 deletions

View file

@ -8,14 +8,24 @@ struct swaybar_config;
struct swaybar_output;
struct swaybar_workspace;
struct swaybar_pointer {
struct wl_pointer *pointer;
struct wl_cursor_theme *cursor_theme;
struct wl_cursor_image *cursor_image;
struct wl_surface *cursor_surface;
struct swaybar_output *current;
};
struct swaybar {
struct wl_display *display;
struct wl_compositor *compositor;
struct zwlr_layer_shell_v1 *layer_shell;
struct wl_shm *shm;
struct wl_seat *seat;
struct swaybar_config *config;
struct swaybar_output *focused_output;
struct swaybar_pointer pointer;
struct status_line *status;
int ipc_event_socketfd;