mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
layers: always unmap on destroy
This sets seat->focused_layer to NULL if appropriate.
This commit is contained in:
parent
c73628ced1
commit
801a04a647
1 changed files with 1 additions and 3 deletions
|
|
@ -129,9 +129,7 @@ destroy_notify(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
struct lab_layer_surface *layer = wl_container_of(
|
struct lab_layer_surface *layer = wl_container_of(
|
||||||
listener, layer, destroy);
|
listener, layer, destroy);
|
||||||
if (layer->scene_layer_surface->layer_surface->mapped) {
|
|
||||||
unmap(layer);
|
unmap(layer);
|
||||||
}
|
|
||||||
|
|
||||||
wl_list_remove(&layer->link);
|
wl_list_remove(&layer->link);
|
||||||
wl_list_remove(&layer->destroy.link);
|
wl_list_remove(&layer->destroy.link);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue