]> 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:10 +0000 (23:28 +0100)
i3bar/src/xcb.c

index b52160df57fbc90b20d7fba73ed7960b6259ad8c..9cb77f3fdacfa1096e4e35e1b9fad67e25ca8665 100644 (file)
@@ -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();