xdg-surface: fix init state flow

Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3677
This commit is contained in:
Kirill Primak 2023-08-26 19:25:34 +03:00 committed by Simon Zeni
parent 016494af1b
commit 0fdbdc36c0
4 changed files with 19 additions and 10 deletions

View file

@ -166,7 +166,6 @@ struct wlr_xdg_toplevel_requested {
struct wlr_xdg_toplevel {
struct wl_resource *resource;
struct wlr_xdg_surface *base;
bool sent_initial_configure;
struct wlr_xdg_toplevel *parent;
struct wl_listener parent_unmap;
@ -257,6 +256,9 @@ struct wlr_xdg_surface {
struct wlr_xdg_surface_state current, pending;
bool initialized;
bool initial_commit;
struct {
struct wl_signal destroy;
struct wl_signal ping_timeout;