diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-23 16:21:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-23 16:21:25 +0000 |
| commit | ecdf24a5dbc658498309c821e40dd3b6e3a38a5b (patch) | |
| tree | a40fe95364cb604106a5d6696418d8366ac5bcf9 | |
| parent | 8146cdb6eed75f69169a91348644f584243122c0 (diff) | |
end the other action when starting a new interactive action while one was in place
| -rw-r--r-- | openbox/keyboard.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 5bda7a7b..b0d8d3a9 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -120,6 +120,18 @@ void keyboard_interactive_grab(guint state, ObClient *client, return; } interactive_grab = TRUE; + } else if (action != grabbed_action) { + /* finish it */ + if (grabbed_action->func == action_cycle_windows) { + grabbed_action->data.cycle.final = TRUE; + } + if (grabbed_action->func == action_desktop_dir) { + grabbed_action->data.desktopdir.final = TRUE; + } + if (grabbed_action->func == action_send_to_desktop_dir) { + grabbed_action->data.sendtodir.final = TRUE; + } + grabbed_action->func(&grabbed_action->data); } grabbed_state = state; |
