From 3302f1ce5c1a84229673c96451576ab25674f125 Mon Sep 17 00:00:00 2001 From: llyyr Date: Sat, 30 May 2026 10:09:23 +0530 Subject: [PATCH] sway/server: advertise xdg-decoration-v1 version 2 Ref: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/5385 --- sway/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sway/server.c b/sway/server.c index 8c55c0395..ed3468b53 100644 --- a/sway/server.c +++ b/sway/server.c @@ -78,6 +78,7 @@ #define SWAY_LAYER_SHELL_VERSION 5 #define SWAY_FOREIGN_TOPLEVEL_LIST_VERSION 1 #define SWAY_PRESENTATION_VERSION 2 +#define SWAY_XDG_DECORATION_VERSION 2 bool unsupported_gpu_detected = false; @@ -396,7 +397,8 @@ bool server_init(struct sway_server *server) { wl_list_init(&server->decorations); server->xdg_decoration_manager = - wlr_xdg_decoration_manager_v1_create(server->wl_display); + wlr_xdg_decoration_manager_v1_create(server->wl_display, + SWAY_XDG_DECORATION_VERSION); if (!server->xdg_decoration_manager) { sway_log(SWAY_ERROR, "Failed to create XDG decoration manager"); return false;