diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-08 23:42:20 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-08 23:42:20 +0000 |
| commit | 636a676c56e357a301b6a4a63e9640cb312b37df (patch) | |
| tree | 02902c8782373390a468692bade9117b56b270e2 /openbox/keyboard.c | |
| parent | 0064695d59a558b3b2444418b68a4c9c89956d79 (diff) | |
dont ungrab/regrab when the position in the chain didnt move
Diffstat (limited to 'openbox/keyboard.c')
| -rw-r--r-- | openbox/keyboard.c | 8 |
1 files 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; |
