]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Skip inactive outputs, when unmapping
authorAxel Wagner <mail@merovius.de>
Sat, 19 Mar 2011 22:28:10 +0000 (23:28 +0100)
committerAxel Wagner <mail@merovius.de>
Sat, 19 Mar 2011 22:28:26 +0000 (23:28 +0100)
i3bar/src/xcb.c

index dbf681ad610c56f12d762a9c104e458cb5697bb3..66bcf93bf23865f841bf3ebd53d684b6801324f4 100644 (file)
@@ -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();