This commit is contained in:
Your Name 2023-10-31 18:01:36 +03:00
parent 9081bd6d9c
commit b5fba46c63
3 changed files with 52 additions and 29 deletions

View file

@ -6,18 +6,16 @@
#include <assert.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/render/allocator.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/render/allocator.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_control_v1.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_export_dmabuf_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_primary_selection_v1.h>
#include <wlr/types/wlr_screencopy_v1.h>
#include <wlr/types/wlr_input_device.h>
#include <wlr/types/wlr_keyboard.h>
#include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_scene.h>
#include <wlr/types/wlr_seat.h>
#include <wlr/types/wlr_xdg_shell.h>
#include <wlr/util/log.h>
@ -26,11 +24,13 @@
struct server {
struct wl_display *wl_display;
struct wl_event_loop *wl_event_loop;
struct wlr_backend *backend;
struct wlr_renderer *renderer;
struct wlr_allocator *alloc;
/* Monitors */
struct wlr_cursor *cursor;
struct wlr_output_layout *output_layout;
struct wl_list outputs;
struct wl_listener new_output;
};
@ -39,12 +39,20 @@ struct output {
struct wlr_output *wlr_output;
struct server *server;
struct timespec last_frame;
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