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

@ -284,7 +284,6 @@ desktop_node_and_view_at(struct server *server, double lx, double ly,
}
#endif
}
struct wlr_scene_node *osd = &server->osd_tree->node;
while (node) {
struct node_descriptor *desc = node->data;
/* TODO: convert to switch() */
@ -307,10 +306,6 @@ desktop_node_and_view_at(struct server *server, double lx, double ly,
return NULL;
}
}
if (node == osd) {
*view_area = LAB_SSD_OSD;
return NULL;
}
node = node->parent;
}
if (!node) {