From: Dana Jansens Date: Wed, 23 May 2007 01:42:08 +0000 (+0000) Subject: draw the keychain popup only when necessary X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e8dbe09cddf15de9b48539cac4f1f6639962a6d7;p=chaz%2Fopenbox draw the keychain popup only when necessary --- diff --git a/openbox/keyboard.c b/openbox/keyboard.c index ab9d05b0..2c60ac3d 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -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;