From d3506604e8fc995afb18ae0b1ffdf9bae9859b0a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 4 May 2019 00:11:18 +0300 Subject: Fix xdg-decoration unconfigured if set before first commit In case a set_mode/unset_mode request is sent before the first commit, we need to handle the value and send our preference accordingly. This fixes xdg-decoration support for Qt apps. --- sway/xdg_decoration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/xdg_decoration.c b/sway/xdg_decoration.c index 9ac87191..e7c3ea73 100644 --- a/sway/xdg_decoration.c +++ b/sway/xdg_decoration.c @@ -47,6 +47,8 @@ void handle_xdg_decoration(struct wl_listener *listener, void *data) { deco->request_mode.notify = xdg_decoration_handle_request_mode; wl_list_insert(&server.xdg_decorations, &deco->link); + + xdg_decoration_handle_request_mode(&deco->request_mode, wlr_deco); } struct sway_xdg_decoration *xdg_decoration_from_surface( -- cgit v1.2.3-54-g00ecf