diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-26 22:13:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-26 22:13:34 +0000 |
| commit | 5e9e266722826fbd5907df1bf900864ab23f6539 (patch) | |
| tree | 8750a5187dd73edaa93433be6d8d5c459abd6aaa /openbox/client.c | |
| parent | 4a45cabd4fb99ac787a3f84f89541e1c76e578b4 (diff) | |
change in how things are ungrabbed to avoid grabwhilenotify. don't ungrab every key press. just ungrab the passive grab when there is no active grab and we are going to move focus.
this should be less intrusive and seems to work
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c index ffbcd5ca..bf772336 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2540,8 +2540,7 @@ gboolean client_hide(ObClient *self) actions should not rely on being able to move focus during an interactive grab. */ - if (keyboard_interactively_grabbed()) - keyboard_interactive_cancel(); + event_cancel_all_key_grabs(); } frame_hide(self->frame); @@ -3526,8 +3525,7 @@ gboolean client_focus(ObClient *self) actions should not rely on being able to move focus during an interactive grab. */ - if (keyboard_interactively_grabbed()) - keyboard_interactive_cancel(); + event_cancel_all_key_grabs(); xerror_set_ignore(TRUE); xerror_occured = FALSE; |
