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~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f5b715bd6516d179207611f03089a348d10dcc8;p=i3%2Fi3 bugfix: Skip inactive outputs on redraw (thx sECuRE) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index c3ba149b..24f20c34 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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,