]> 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:31:42 +0000 (22:31 +0100)
i3bar/src/xcb.c

index c3ba149bddaadd206a4c186523ff132b102d5aab..24f20c34f11fd9651846999b6ab401e22cbedf8b 100644 (file)
@@ -881,6 +881,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,