]> Dogcows Code - chaz/openbox/commitdiff
draw the keychain popup only when necessary
authorDana Jansens <danakj@orodu.net>
Wed, 23 May 2007 01:42:08 +0000 (01:42 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 23 May 2007 01:42:08 +0000 (01:42 +0000)
openbox/keyboard.c

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