From: Axel Wagner Date: Sat, 19 Mar 2011 22:28:10 +0000 (+0100) Subject: Bugfix: Skip inactive outputs, when unmapping X-Git-Tag: 4.0.1~7^2~3^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=16f7574851255c75c9d3dc6f19ea4b355b8b5f8a;p=i3%2Fi3 Bugfix: Skip inactive outputs, when unmapping --- 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();