]> Dogcows Code - chaz/openbox/commitdiff
dont ungrab/regrab when the position in the chain didnt move
authorDana Jansens <danakj@orodu.net>
Tue, 8 May 2007 23:42:20 +0000 (23:42 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 8 May 2007 23:42:20 +0000 (23:42 +0000)
openbox/keyboard.c

index cf56ad8f3b99c60640e273e4b0de9d13fc6d6ede..f3400fca80b503b9b22a6406caa1d9eaa855dd8f 100644 (file)
@@ -78,9 +78,11 @@ static gboolean chain_timeout(gpointer data)
 
 static void set_curpos(KeyBindingTree *newpos)
 {
-    grab_keys(FALSE);
-    curpos = newpos;
-    grab_keys(TRUE);
+    if (curpose != newpos) {
+        grab_keys(FALSE);
+        curpos = newpos;
+        grab_keys(TRUE);
+    }
 
     if (curpos != NULL) {
         gchar *text = NULL;
This page took 0.021975 seconds and 4 git commands to generate.