]> Dogcows Code - chaz/openbox/commitdiff
ungrab keys before grabbnig keys at the next chain level
authorDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 17:33:50 +0000 (17:33 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 17:33:50 +0000 (17:33 +0000)
openbox/keyboard.c

index b517014a795df3334fdf470c5b101c7fb6934359..ed9812401e89d7ca210490e06771b316540e12da 100644 (file)
@@ -73,6 +73,7 @@ void keyboard_reset_chains()
     ob_main_loop_timeout_remove(ob_main_loop, chain_timeout);
 
     if (curpos) {
+        grab_keys(FALSE);
         curpos = NULL;
         grab_keys(TRUE);
     }
@@ -208,6 +209,7 @@ void keyboard_event(ObClient *client, const XEvent *e)
                 /* 5 second timeout for chains */
                 ob_main_loop_timeout_add(ob_main_loop, 5 * G_USEC_PER_SEC,
                                          chain_timeout, NULL, NULL);
+                grab_keys(FALSE);
                 curpos = p;
                 grab_keys(TRUE);
             } else {
This page took 0.026796 seconds and 4 git commands to generate.