mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
view: if view->fullscreen on destroy, re-enable top-layer
The layer-shell top-layer is disabled when running an application in fullscreen mode, so if this is the case on view_destroy() we have to re-enabled the top-layer again. Reported-by: @heroin-moose Helped-by: @Consolatis Fixes #377
This commit is contained in:
parent
138b1852c1
commit
bbea6d8330
1 changed files with 12 additions and 0 deletions
12
src/view.c
12
src/view.c
|
|
@ -743,6 +743,18 @@ view_destroy(struct view *view)
|
||||||
view->scene_tree = NULL;
|
view->scene_tree = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The layer-shell top-layer is disabled when an application is running
|
||||||
|
* in fullscreen mode, so if that's the case, we have to re-enable it
|
||||||
|
* here.
|
||||||
|
*/
|
||||||
|
if (view->fullscreen) {
|
||||||
|
struct output *output =
|
||||||
|
output_from_wlr_output(view->server, view->fullscreen);
|
||||||
|
uint32_t top = ZWLR_LAYER_SHELL_V1_LAYER_TOP;
|
||||||
|
wlr_scene_node_set_enabled(&output->layer_tree[top]->node, true);
|
||||||
|
}
|
||||||
|
|
||||||
/* Remove view from server->views */
|
/* Remove view from server->views */
|
||||||
wl_list_remove(&view->link);
|
wl_list_remove(&view->link);
|
||||||
free(view);
|
free(view);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue