wayland: place dock_shadow below dock icons
The dock ghost shadow was in WL_LAYER_OVERLAY rendering above dock icons. Move to WL_LAYER_NORMAL and lower to bottom so it renders beneath the dock icons (WL_LAYER_DOCK) during icon drag, matching X11 behavior where the ghost shows as a position marker below the real icon.
This commit is contained in:
parent
1d54ddf255
commit
c90355b663
|
|
@ -503,14 +503,15 @@ wl_screen_create_internals(WScreen *scr)
|
|||
dsfb->id = wl_state.next_synthetic_id++;
|
||||
dsfb->width = sz;
|
||||
dsfb->height = sz;
|
||||
struct wlr_scene_tree *ds_parent = wl_state.level_trees[WL_LAYER_OVERLAY]
|
||||
? wl_state.level_trees[WL_LAYER_OVERLAY] : &wl_state.scene->tree;
|
||||
struct wlr_scene_tree *ds_parent = wl_state.level_trees[WL_LAYER_NORMAL]
|
||||
? wl_state.level_trees[WL_LAYER_NORMAL] : &wl_state.scene->tree;
|
||||
dsfb->tree = wlr_scene_tree_create(ds_parent);
|
||||
if (dsfb->tree) {
|
||||
dsfb->scene_buf = wlr_scene_buffer_create(dsfb->tree, &dsfb->base);
|
||||
if (dsfb->scene_buf)
|
||||
wlr_scene_node_set_enabled(&dsfb->scene_buf->node, false);
|
||||
wlr_scene_node_set_enabled(&dsfb->tree->node, false);
|
||||
wlr_scene_node_lower_to_bottom(&dsfb->tree->node);
|
||||
}
|
||||
wl_list_insert(&wl_state.frame_list, &dsfb->link);
|
||||
scr->dock_shadow = dsfb->id;
|
||||
|
|
|
|||
Loading…
Reference in New Issue