From 16f7574851255c75c9d3dc6f19ea4b355b8b5f8a Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Sat, 19 Mar 2011 23:28:10 +0100 Subject: [PATCH] Bugfix: Skip inactive outputs, when unmapping --- i3bar/src/xcb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index b52160df..9cb77f3f 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -206,6 +206,9 @@ void hide_bars() { i3_output *walk; SLIST_FOREACH(walk, outputs, slist) { + if (!walk->active) { + continue; + } xcb_unmap_window(xcb_connection, walk->bar); } stop_child(); -- 2.39.5