mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 03:11:27 +00:00
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.
This commit is contained in:
parent
464a3b4fdd
commit
d3506604e8
|
@ -47,6 +47,8 @@ void handle_xdg_decoration(struct wl_listener *listener, void *data) {
|
||||||
deco->request_mode.notify = xdg_decoration_handle_request_mode;
|
deco->request_mode.notify = xdg_decoration_handle_request_mode;
|
||||||
|
|
||||||
wl_list_insert(&server.xdg_decorations, &deco->link);
|
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(
|
struct sway_xdg_decoration *xdg_decoration_from_surface(
|
||||||
|
|
Loading…
Reference in a new issue