osd: show alt-tab switcher center-aligned on all outputs

Fixes issue #283
This commit is contained in:
Johan Malm 2022-04-20 17:45:10 +01:00
parent a234e71b29
commit 48c9e6fda0
6 changed files with 30 additions and 20 deletions

View file

@ -142,6 +142,9 @@ new_output_notify(struct wl_listener *listener, void *data)
output->layer_popup_tree = wlr_scene_tree_create(&server->scene->node);
node_descriptor_create(&output->layer_popup_tree->node,
LAB_NODE_DESC_TREE, NULL);
output->osd_tree = wlr_scene_tree_create(&server->scene->node);
node_descriptor_create(&output->osd_tree->node,
LAB_NODE_DESC_TREE, NULL);
/*
* Set the z-positions to achieve the following order (from top to