xdg-shell: introduce wlr_xdg_surface.current

This holds the current state, and avoids having ad-hoc fields in
wlr_xdg_surface.
This commit is contained in:
Simon Ser 2021-09-30 20:58:36 +02:00 committed by Kirill Primak
parent db4afc2408
commit 0e34208344
4 changed files with 14 additions and 25 deletions

View file

@ -191,14 +191,11 @@ struct wlr_xdg_surface {
struct wl_list popups; // wlr_xdg_popup::link
bool added, configured, mapped;
uint32_t configure_serial;
struct wl_event_source *configure_idle;
uint32_t configure_next_serial;
struct wl_list configure_list;
struct wlr_box geometry;
struct wlr_xdg_surface_state pending;
struct wlr_xdg_surface_state current, pending;
struct wl_listener surface_destroy;
struct wl_listener surface_commit;