From: Axel Wagner Date: Sat, 19 Mar 2011 21:30:59 +0000 (+0100) Subject: bugfix: Skip inactive outputs on redraw (thx sECuRE) X-Git-Tag: 4.0.1~7^2~3^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a847454a42b4a54e9ebd8a56aa4c42e276d26f93;p=i3%2Fi3 bugfix: Skip inactive outputs on redraw (thx sECuRE) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index f717f487..6c89c64e 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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,