]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: Skip inactive outputs on redraw (thx sECuRE)
authorAxel Wagner <mail@merovius.de>
Sat, 19 Mar 2011 21:30:59 +0000 (22:30 +0100)
committerAxel Wagner <mail@merovius.de>
Sat, 19 Mar 2011 21:30:59 +0000 (22:30 +0100)
i3bar/src/xcb.c

index f717f487f7591d4d2ddaa95888018e0257ee0675..6c89c64e7abdd59626d98e9e63bae58a045e3b08 100644 (file)
@@ -951,6 +951,9 @@ void draw_bars() {
 void redraw_bars() {
     i3_output *outputs_walk;
     SLIST_FOREACH(outputs_walk, outputs, slist) {
+        if (!outputs_walk->active) {
+            continue;
+        }
         xcb_copy_area(xcb_connection,
                       outputs_walk->buffer,
                       outputs_walk->bar,