mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
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.
This commit is contained in:
parent
665a164f27
commit
744a5c2fef
1 changed files with 0 additions and 4 deletions
|
@ -85,10 +85,6 @@ void unmap_xdg_surface(struct wlr_xdg_surface *surface) {
|
||||||
wl_event_source_remove(surface->configure_idle);
|
wl_event_source_remove(surface->configure_idle);
|
||||||
surface->configure_idle = NULL;
|
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,
|
static void xdg_surface_handle_ack_configure(struct wl_client *client,
|
||||||
|
|
Loading…
Reference in a new issue