From e8dbe09cddf15de9b48539cac4f1f6639962a6d7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 23 May 2007 01:42:08 +0000 Subject: [PATCH] draw the keychain popup only when necessary --- openbox/keyboard.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.45.2