mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
osd: Do not show window switcher on disabled outputs
This commit is contained in:
parent
b39020213a
commit
0dba67a41d
1 changed files with 4 additions and 0 deletions
|
|
@ -146,6 +146,10 @@ osd_update(struct server *server)
|
||||||
struct wlr_scene_node *node;
|
struct wlr_scene_node *node;
|
||||||
wl_list_for_each(output, &server->outputs, link) {
|
wl_list_for_each(output, &server->outputs, link) {
|
||||||
destroy_osd_nodes(output);
|
destroy_osd_nodes(output);
|
||||||
|
if (!output->wlr_output->enabled) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
float scale = output->wlr_output->scale;
|
float scale = output->wlr_output->scale;
|
||||||
int w = OSD_ITEM_WIDTH + (2 * OSD_BORDER_WIDTH);
|
int w = OSD_ITEM_WIDTH + (2 * OSD_BORDER_WIDTH);
|
||||||
int h = get_osd_height(node_list);
|
int h = get_osd_height(node_list);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue