aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2017-06-19 22:36:40 +0200
committernyorain <nyorain@gmail.com>2017-06-19 22:36:40 +0200
commit792d53522578a1410160e40cbb01c206b2bdf840 (patch)
tree10deb02416bc4706a0ced35529ae458d68e18aba /include
parente65ca967f9f025748ce0710a09450ce05c5a36dd (diff)
Rework wayland backend output implementation
Diffstat (limited to 'include')
-rw-r--r--include/backend/wayland.h21
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