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~8 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a5a9afcf2e9a7a93db0565ce83597673853d1d5c;p=i3%2Fi3 Bugfix: Skip inactive outputs, when unmapping --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index dbf681ad..66bcf93b 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -205,6 +205,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();