From a847454a42b4a54e9ebd8a56aa4c42e276d26f93 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Sat, 19 Mar 2011 22:30:59 +0100 Subject: [PATCH] bugfix: Skip inactive outputs on redraw (thx sECuRE) --- i3bar/src/xcb.c | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.39.5