From 682458f4d7c46557dfd1153579a9f84aef177729 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Sat, 19 Mar 2011 23:27:50 +0100 Subject: [PATCH] Don't draw on backbuffer, when hiding (thx sECuRE) --- i3bar/src/xcb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 49bb0d09..b52160df 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -220,6 +220,8 @@ void unhide_bars() { return; } + draw_bars(); + i3_output *walk; xcb_void_cookie_t cookie; uint32_t mask; @@ -882,6 +884,9 @@ void reconfig_windows() { * */ void draw_bars() { + if (config.hide_on_modifier && !mod_pressed) { + return; + } DLOG("Drawing Bars...\n"); int i = 0;