aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2019-05-04 00:11:18 +0300
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-05-11 13:34:45 -0400
commitd3506604e8fc995afb18ae0b1ffdf9bae9859b0a (patch)
tree9290f673dda1ce91ea9a1087f955eca52a27cfbb
parentBump required wlroots version (diff)
downloadsway-d3506604e8fc995afb18ae0b1ffdf9bae9859b0a.tar.gz
sway-d3506604e8fc995afb18ae0b1ffdf9bae9859b0a.tar.zst
sway-d3506604e8fc995afb18ae0b1ffdf9bae9859b0a.zip
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.
-rw-r--r--sway/xdg_decoration.c2
1 files changed, 2 insertions, 0 deletions
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) {
47 deco->request_mode.notify = xdg_decoration_handle_request_mode; 47 deco->request_mode.notify = xdg_decoration_handle_request_mode;
48 48
49 wl_list_insert(&server.xdg_decorations, &deco->link); 49 wl_list_insert(&server.xdg_decorations, &deco->link);
50
51 xdg_decoration_handle_request_mode(&deco->request_mode, wlr_deco);
50} 52}
51 53
52struct sway_xdg_decoration *xdg_decoration_from_surface( 54struct sway_xdg_decoration *xdg_decoration_from_surface(