xdg_shell: wait for initial commit to set xdg-decoration mode

Sending the xdg-decoration mode when the xdg_toplevel_decoration
object is created is incorrect: we need to wait for the initial
commit.
This commit is contained in:
Simon Ser 2024-08-24 15:46:11 +02:00
parent fa90174607
commit 1abf7e5a4b
2 changed files with 35 additions and 15 deletions

View file

@ -22,6 +22,7 @@ struct cg_xdg_decoration {
struct wlr_xdg_toplevel_decoration_v1 *wlr_decoration;
struct cg_server *server;
struct wl_listener destroy;
struct wl_listener commit;
struct wl_listener request_mode;
};