diff options
Diffstat (limited to 'include/backend/wayland.h')
-rw-r--r-- | include/backend/wayland.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 9c1a7a00..4cad565d 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -3,8 +3,10 @@ #include <wayland-client.h> #include <wayland-server.h> +#include <wayland-egl.h> #include <wlr/common/list.h> #include <wlr/backend/wayland.h> +#include "backend/egl.h" struct wlr_backend_state { /* local state */ @@ -19,20 +21,31 @@ struct wlr_backend_state { const char *seatName; struct wlr_backend *backend; - list_t *outputs; list_t *devices; + + size_t num_outputs; + struct wlr_output **outputs; + struct wlr_egl egl; }; struct wlr_output_state { - struct wl_output* output; + size_t id; + struct wlr_output *output; + struct wl_surface *surface; + struct wl_shell_surface *shell_surface; + struct wl_egl_window* egl_window; + void* egl_surface; }; struct wlr_input_device_state { + enum wlr_input_device_type type; + void *resource; }; -void wlr_wlb_registry_poll(struct wlr_backend_state *backend); +void wlr_wl_registry_poll(struct wlr_backend_state *backend); +struct wlr_output *wlr_wl_output_create(struct wlr_backend_state* backend, + size_t id); extern const struct wl_seat_listener seat_listener; -extern const struct wl_output_listener output_listener; #endif |