From 27459ec19d399baa65d3fd76b15413667e0cfe40 Mon Sep 17 00:00:00 2001 From: daniel <193309918+danielfikko@users.noreply.github.com> Date: Sat, 30 May 2026 02:25:42 -0300 Subject: [PATCH] decorations/xdg-deco: advertise xdg-decoration-v1 version 2 References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5385 https://github.com/swaywm/sway/pull/9171 --- src/decorations/xdg-deco.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/decorations/xdg-deco.c b/src/decorations/xdg-deco.c index e195e02f..fe8f86d4 100644 --- a/src/decorations/xdg-deco.c +++ b/src/decorations/xdg-deco.c @@ -6,6 +6,8 @@ #include "labwc.h" #include "view.h" +#define LAB_XDG_DECORATION_VERSION 2 + struct xdg_deco { struct wlr_xdg_toplevel_decoration_v1 *wlr_xdg_decoration; enum wlr_xdg_toplevel_decoration_v1_mode client_mode; @@ -118,7 +120,8 @@ void xdg_server_decoration_init(void) { struct wlr_xdg_decoration_manager_v1 *xdg_deco_mgr = NULL; - xdg_deco_mgr = wlr_xdg_decoration_manager_v1_create(server.wl_display); + xdg_deco_mgr = wlr_xdg_decoration_manager_v1_create(server.wl_display, + LAB_XDG_DECORATION_VERSION); if (!xdg_deco_mgr) { wlr_log(WLR_ERROR, "unable to create the XDG deco manager"); exit(EXIT_FAILURE);