aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2024-02-27 15:10:09 +0100
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-03-08 09:52:14 +0300
commit3ef5abd405a6fd32aeeffb2f48a6cadd9fc14574 (patch)
treee654633529e7cfe8fcaea5bd67fbf3d08b03f57f /sway
parentxdg-shell: implement popup repositioning (diff)
downloadsway-3ef5abd405a6fd32aeeffb2f48a6cadd9fc14574.tar.gz
sway-3ef5abd405a6fd32aeeffb2f48a6cadd9fc14574.tar.zst
sway-3ef5abd405a6fd32aeeffb2f48a6cadd9fc14574.zip
xdg-shell: send WM capabilities
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/xdg_shell.c4
-rw-r--r--sway/server.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index 47ab902e..7c417891 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -289,6 +289,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
289 } 289 }
290 // XXX: https://github.com/swaywm/sway/issues/2176 290 // XXX: https://github.com/swaywm/sway/issues/2176
291 wlr_xdg_surface_schedule_configure(xdg_surface); 291 wlr_xdg_surface_schedule_configure(xdg_surface);
292 // TODO: wlr_xdg_toplevel_set_bounds()
292 return; 293 return;
293 } 294 }
294 295
@@ -574,4 +575,7 @@ void handle_xdg_shell_toplevel(struct wl_listener *listener, void *data) {
574 wlr_scene_xdg_surface_create(xdg_shell_view->view.content_tree, xdg_toplevel->base); 575 wlr_scene_xdg_surface_create(xdg_shell_view->view.content_tree, xdg_toplevel->base);
575 576
576 xdg_toplevel->base->data = xdg_shell_view; 577 xdg_toplevel->base->data = xdg_shell_view;
578
579 wlr_xdg_toplevel_set_wm_capabilities(xdg_toplevel,
580 XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
577} 581}
diff --git a/sway/server.c b/sway/server.c
index cb8bdbf9..2a0dc1e7 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -65,7 +65,7 @@
65#include <wlr/types/wlr_drm_lease_v1.h> 65#include <wlr/types/wlr_drm_lease_v1.h>
66#endif 66#endif
67 67
68#define SWAY_XDG_SHELL_VERSION 3 68#define SWAY_XDG_SHELL_VERSION 5
69#define SWAY_LAYER_SHELL_VERSION 4 69#define SWAY_LAYER_SHELL_VERSION 4
70#define SWAY_FOREIGN_TOPLEVEL_LIST_VERSION 1 70#define SWAY_FOREIGN_TOPLEVEL_LIST_VERSION 1
71 71