From 792d53522578a1410160e40cbb01c206b2bdf840 Mon Sep 17 00:00:00 2001 From: nyorain Date: Mon, 19 Jun 2017 22:36:40 +0200 Subject: Rework wayland backend output implementation --- include/backend/wayland.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'include') 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 #include +#include #include #include +#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 -- cgit v1.2.3