]> Dogcows Code - chaz/openbox/blobdiff - openbox/keyboard.c
bugfix
[chaz/openbox] / openbox / keyboard.c
index e62f5011292a21456533ce6777cb482a9af65d76..7780753d4ff4435a5f19f5c84c64d14924e26284 100644 (file)
@@ -103,6 +103,7 @@ static void set_curpos(KeyBindingTree *newpos)
         /* 1 second delay for the popup to show */
         popup_delay_show(popup, G_USEC_PER_SEC, text);
         g_free(text);
+        g_free(a);
     } else {
         popup_hide(popup);
     }
@@ -276,7 +277,13 @@ void keyboard_event(ObClient *client, const XEvent *e)
 {
     KeyBindingTree *p;
 
+    if (e->type == KeyRelease) {
+        grab_key_passive_count(-1);
+        return;
+    }
+
     g_assert(e->type == KeyPress);
+    grab_key_passive_count(1);
 
     if (e->xkey.keycode == config_keyboard_reset_keycode &&
         e->xkey.state == config_keyboard_reset_state)
This page took 0.025444 seconds and 4 git commands to generate.