diff options
Diffstat (limited to 'src/window_wayland.h')
| -rw-r--r-- | src/window_wayland.h | 14 |
1 files changed, 13 insertions, 1 deletions
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 <xdg-shell-client-protocol.h> #include <xdg-decoration-unstable-v1-client-protocol.h> #include <cursor-shape-v1-client-protocol.h> +#include <xdg-toplevel-icon-v1-client-protocol.h> #include <wlr-layer-shell-unstable-v1-client-protocol.h> //#include <presentation-time-client-protocol.h> #include <linux/input.h> @@ -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; |