diff options
author | Simon Ser <contact@emersion.fr> | 2021-09-30 22:13:18 +0200 |
---|---|---|
committer | Kirill Primak <vyivel@posteo.net> | 2021-09-30 23:17:32 +0300 |
commit | 744a5c2fefc08980a3a4755ee8fc631a2f321736 (patch) | |
tree | 0ad3b1af10ba28d7c6a5613c52bc126328eb8a63 | |
parent | 665a164f27495f89d6924156b652b837d11ddd98 (diff) |
xdg-shell: stop clearing wlr_xdg_surface state on unmap
The protocol doesn't say we should, so let's not.
Also it's pointless to reset scheduled_serial, since 0 is a valid
serial.
-rw-r--r-- | types/xdg_shell/wlr_xdg_surface.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/types/xdg_shell/wlr_xdg_surface.c b/types/xdg_shell/wlr_xdg_surface.c index 71335f0a..ae3426a2 100644 --- a/types/xdg_shell/wlr_xdg_surface.c +++ b/types/xdg_shell/wlr_xdg_surface.c @@ -85,10 +85,6 @@ void unmap_xdg_surface(struct wlr_xdg_surface *surface) { wl_event_source_remove(surface->configure_idle); surface->configure_idle = NULL; } - surface->scheduled_serial = 0; - - memset(&surface->current, 0, sizeof(struct wlr_xdg_surface_state)); - memset(&surface->pending, 0, sizeof(struct wlr_xdg_surface_state)); } static void xdg_surface_handle_ack_configure(struct wl_client *client, |