From: Axel Wagner Date: Sat, 19 Mar 2011 22:27:50 +0000 (+0100) Subject: Don't draw on backbuffer, when hiding (thx sECuRE) X-Git-Tag: 4.0.1~7^2~3^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=682458f4d7c46557dfd1153579a9f84aef177729;p=i3%2Fi3 Don't draw on backbuffer, when hiding (thx sECuRE) --- 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;