diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2026-01-04 19:30:53 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2026-01-04 19:31:16 -0700 |
| commit | 235de32e3b4d0ae8de984a29af9d6233c1ed1080 (patch) | |
| tree | 4dcd18c2d884b0db05b9942bb40a12f8227229d3 /rt/include | |
| parent | efe34b2c98cc90ed686217ea3b0655fae1839414 (diff) | |
| download | montis-235de32e3b4d0ae8de984a29af9d6233c1ed1080.tar.gz montis-235de32e3b4d0ae8de984a29af9d6233c1ed1080.tar.bz2 montis-235de32e3b4d0ae8de984a29af9d6233c1ed1080.zip | |
[feat] Request that clients don't draw their decorations.
Diffstat (limited to 'rt/include')
| -rw-r--r-- | rt/include/plugin.h | 1 | ||||
| -rw-r--r-- | rt/include/wl.h | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/rt/include/plugin.h b/rt/include/plugin.h index be5dbb4..4146b37 100644 --- a/rt/include/plugin.h +++ b/rt/include/plugin.h @@ -143,6 +143,7 @@ typedef struct PLUGIN { EXPORT(opqst_t (*plugin_handle_button)(struct wlr_pointer_button_event *event, uint32_t modifiers, opqst_t state)); + /* Absolute motion only for now; relative motion stays in the runtime. */ EXPORT(opqst_t (*plugin_handle_motion)( struct wlr_pointer_motion_absolute_event *event, uint32_t modifiers, opqst_t state)); diff --git a/rt/include/wl.h b/rt/include/wl.h index dc7fe9f..f10ee7d 100644 --- a/rt/include/wl.h +++ b/rt/include/wl.h @@ -22,6 +22,7 @@ #include <wlr/types/wlr_subcompositor.h> #include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xdg_shell.h> +#include <wlr/types/wlr_xdg_decoration_v1.h> #include <wlr/util/log.h> #include <xkbcommon/xkbcommon.h> @@ -47,6 +48,9 @@ struct montis_server { struct wl_listener new_xdg_popup; struct wl_list toplevels; + struct wlr_xdg_decoration_manager_v1 *xdg_decoration_manager; + struct wl_listener new_xdg_decoration; + struct wlr_cursor *cursor; struct wlr_xcursor_manager *cursor_mgr; struct wl_listener cursor_motion; @@ -114,3 +118,8 @@ struct montis_popup { struct wl_listener destroy; }; +struct montis_xdg_decoration { + struct wlr_xdg_toplevel_decoration_v1 *decoration; + struct wl_listener request_mode; + struct wl_listener destroy; +}; |