mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
layer-shell: ignore ack_configure() on closed surfaces
When the surface is closed, we destroy all pending serials waiting to be accepted. This means we need to ignore any future ack events, because we can have the following events: 1. -> configure() 2. -> close() 3. <- ack_configure() At point 3, wlroots will error the client because of invalid serial, however the client hasn't processed close() yet.
This commit is contained in:
parent
bf90474b74
commit
8b0f1bc850
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ static void layer_surface_handle_ack_configure(struct wl_client *client,
|
|||
bool found = false;
|
||||
struct wlr_layer_surface_v1_configure *configure, *tmp;
|
||||
|
||||
if (!surface) {
|
||||
if (!surface || surface->closed) {
|
||||
return;
|
||||
}
|
||||
wl_list_for_each_safe(configure, tmp, &surface->configure_list, link) {
|
||||
|
|
Loading…
Reference in a new issue