sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c5456be7506adece2cdf922ed6d919db597944ab
parent aaab7f961e0b9b0e52d43ca4debfeb8fcb4f7592
Author: Nikola Kocic <nikola-kocic@users.noreply.github.com>
Date:   Tue,  9 Sep 2025 13:43:20 +0200

xdg-shell: fix reported WM capabilities

Previously it was reporting window_menu and maximize instead of fullscreen because wlr_xdg_toplevel_set_wm_capabilities expects a bitmask (WLR_XDG_TOPLEVEL_WM_CAPABILITIES_*), and XDG_TOPLEVEL_WM_CAPABILITIES_* are supposed to be used as values in wl_array, so the values are different:
XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN = 3
WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN = 4

Diffstat:
Msway/desktop/xdg_shell.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c @@ -301,7 +301,7 @@ static void handle_commit(struct wl_listener *listener, void *data) { // XXX: https://github.com/swaywm/sway/issues/2176 wlr_xdg_surface_schedule_configure(xdg_surface); wlr_xdg_toplevel_set_wm_capabilities(view->wlr_xdg_toplevel, - XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN); + WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN); // TODO: wlr_xdg_toplevel_set_bounds() return; }