From 636a676c56e357a301b6a4a63e9640cb312b37df Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 8 May 2007 23:42:20 +0000 Subject: [PATCH] dont ungrab/regrab when the position in the chain didnt move --- openbox/keyboard.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.45.2