From cbad92b78cb9901314dd3304d61bcee3b56312eb Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 13 Apr 2026 16:19:42 -0400 Subject: Wayland icon support and strcmp experiments Signed-off-by: Andrew Opalach --- src/window_wayland.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/window_wayland.h') diff --git a/src/window_wayland.h b/src/window_wayland.h index 3df2794..ad0f572 100644 --- a/src/window_wayland.h +++ b/src/window_wayland.h @@ -11,6 +11,7 @@ #include #include #include +#include #include //#include #include @@ -27,6 +28,10 @@ struct stl_wayland_global { struct wl_display *display; + struct { + u8 *data; + u32 size; + } icon; s32 display_fd; struct wl_registry *registry; u16 keycodes[STELA_WAYLAND_KEY_COUNT]; @@ -50,10 +55,11 @@ struct stl_window_wayland { struct stl_window w; struct wl_display *display; struct wl_registry *registry; + struct wl_compositor *compositor; + struct wl_shm *shm; struct wl_seat *seat; struct wl_pointer *pointer; struct wl_keyboard *keyboard; - struct wl_compositor *compositor; struct wl_surface *surface; struct xdg_wm_base *xdg_wm_base; struct xdg_surface *xdg_surface; @@ -61,6 +67,12 @@ struct stl_window_wayland { struct zxdg_decoration_manager_v1 *zxdg_decoration_manager; struct wp_cursor_shape_manager_v1 *cursor_shape_manager; struct wp_cursor_shape_device_v1 *cursor_shape_device; + struct { + struct xdg_toplevel_icon_manager_v1 *manager; + struct wl_shm_pool *pool; + struct wl_buffer *buffer; + struct xdg_toplevel_icon_v1 *icon; + } icon; struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration; struct zwlr_layer_shell_v1 *layer_shell; struct stl_monitor_wayland *monitor; -- cgit v1.2.3-101-g0448