]> git.sur5r.net Git - i3/i3/commitdiff
Don't draw on backbuffer, when hiding (thx sECuRE)
authorAxel Wagner <mail@merovius.de>
Sat, 19 Mar 2011 22:27:50 +0000 (23:27 +0100)
committerAxel Wagner <mail@merovius.de>
Sat, 19 Mar 2011 22:27:50 +0000 (23:27 +0100)
i3bar/src/xcb.c

index 49bb0d09cc5a78569ed58707066ac410e8f1dcd9..b52160df57fbc90b20d7fba73ed7960b6259ad8c 100644 (file)
@@ -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;