]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd: Do not show window switcher on disabled outputs
authorJohn Lindgren <john@jlindgren.net>
Sun, 21 Aug 2022 19:01:32 +0000 (15:01 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 21 Aug 2022 20:47:45 +0000 (21:47 +0100)
src/osd.c

index f2927c29d002746459a588db6a44a9bcf2edb0e9..7bbd8ad4bad8f94c7988d90915c625b448f0b7cf 100644 (file)
--- a/src/osd.c
+++ b/src/osd.c
@@ -146,6 +146,10 @@ osd_update(struct server *server)
        struct wlr_scene_node *node;
        wl_list_for_each(output, &server->outputs, link) {
                destroy_osd_nodes(output);
+               if (!output->wlr_output->enabled) {
+                       continue;
+               }
+
                float scale = output->wlr_output->scale;
                int w = OSD_ITEM_WIDTH + (2 * OSD_BORDER_WIDTH);
                int h = get_osd_height(node_list);