#ifndef _MAIN_H #define _MAIN_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "config.h" #include "die.h" struct server { struct wl_display *wl_display; struct wlr_backend *backend; struct wlr_renderer *renderer; struct wlr_allocator *alloc; struct wlr_xdg_shell *xdg_shell; struct wl_listener new_xdg_surface; struct wl_list views; struct wlr_cursor *cursor; struct wl_listener cursor_motion; struct wl_listener cursor_button; struct wlr_output_layout *output_layout; struct wl_list outputs; struct wl_listener new_output; }; struct output { struct wlr_output *wlr_output; struct server *server; struct wl_listener destroy; struct wl_listener frame; struct wl_list link; }; struct keyboard { struct wlr_input_device *device; struct server *server; struct wl_listener modifiers; struct wl_listener key; struct wl_list link; }; #endif