From 9f5b715bd6516d179207611f03089a348d10dcc8 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 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,