From: Dana Jansens Date: Tue, 8 May 2007 23:42:20 +0000 (+0000) Subject: dont ungrab/regrab when the position in the chain didnt move X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=636a676c56e357a301b6a4a63e9640cb312b37df;p=chaz%2Fopenbox dont ungrab/regrab when the position in the chain didnt move --- diff --git a/openbox/keyboard.c b/openbox/keyboard.c index cf56ad8f..f3400fca 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -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;