From 0fdbdc36c05fb2811a8b7bc5a69e4d104287cff7 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sat, 26 Aug 2023 19:25:34 +0300 Subject: xdg-surface: fix init state flow Fixes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3677 --- include/wlr/types/wlr_xdg_shell.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index 1b15bfe4..8c1bda05 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -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; -- cgit v1.2.3