feat: handle wl_seat global

This commit is contained in:
2026-02-15 12:49:46 +01:00
parent 4ddd2423b9
commit f4c646a7e0
2 changed files with 61 additions and 0 deletions

View File

@@ -19,6 +19,12 @@ private:
static void registry_handle_global_remove(void *data,
struct wl_registry *registry,
uint32_t name);
static void seat_handle_capabilities(void *data,
struct wl_seat *seat,
uint32_t capabilities);
static void seat_handle_name(void *data,
struct wl_seat *seat,
const char *name);
private:
WaylandState();
~WaylandState();
@@ -33,8 +39,15 @@ private:
struct xdg_wm_base_listener m_wm_base_listener;
struct wl_registry_listener m_reg_listener;
struct wl_shm *m_shm;
struct wl_seat *m_seat;
struct wl_seat_listener m_seat_listener;
struct wl_pointer* m_pointer;
friend class WaylandWindowImpl;
friend class Renderer;
friend class WaylandInputHandler;
};
#endif // H_WAYLAND_STATE_