mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
layer shell: only send unmap on close if mapped
This commit is contained in:
parent
61d6408fdb
commit
11e94c406b
1 changed files with 3 additions and 1 deletions
|
@ -291,7 +291,9 @@ void wlr_layer_surface_v1_close(struct wlr_layer_surface_v1 *surface) {
|
|||
return;
|
||||
}
|
||||
surface->closed = true;
|
||||
layer_surface_unmap(surface);
|
||||
if (surface->mapped) {
|
||||
layer_surface_unmap(surface);
|
||||
}
|
||||
zwlr_layer_surface_v1_send_closed(surface->resource);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue