mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
simplify settings popups scene tree parent
This commit is contained in:
parent
66ec028b00
commit
a353eee2ca
1 changed files with 2 additions and 3 deletions
5
dwl.c
5
dwl.c
|
@ -720,13 +720,12 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)
|
||||||
|
|
||||||
if (layer != layersurface->scene->node.parent) {
|
if (layer != layersurface->scene->node.parent) {
|
||||||
wlr_scene_node_reparent(&layersurface->scene->node, layer);
|
wlr_scene_node_reparent(&layersurface->scene->node, layer);
|
||||||
wlr_scene_node_reparent(&layersurface->popups->node, layer);
|
|
||||||
wl_list_remove(&layersurface->link);
|
wl_list_remove(&layersurface->link);
|
||||||
wl_list_insert(&layersurface->mon->layers[wlr_layer_surface->current.layer],
|
wl_list_insert(&layersurface->mon->layers[wlr_layer_surface->current.layer],
|
||||||
&layersurface->link);
|
&layersurface->link);
|
||||||
|
wlr_scene_node_reparent(&layersurface->popups->node, (wlr_layer_surface->current.layer
|
||||||
|
< ZWLR_LAYER_SHELL_V1_LAYER_TOP ? layers[LyrTop] : layer));
|
||||||
}
|
}
|
||||||
if (wlr_layer_surface->current.layer < ZWLR_LAYER_SHELL_V1_LAYER_TOP)
|
|
||||||
wlr_scene_node_reparent(&layersurface->popups->node, layers[LyrTop]);
|
|
||||||
|
|
||||||
if (wlr_layer_surface->current.committed == 0
|
if (wlr_layer_surface->current.committed == 0
|
||||||
&& layersurface->mapped == wlr_layer_surface->surface->mapped)
|
&& layersurface->mapped == wlr_layer_surface->surface->mapped)
|
||||||
|
|
Loading…
Reference in a new issue