end the other action when starting a new interactive action while one was in place
Dana Jansens danakj@orodu.net
1 files changed,
12 insertions(+),
0 deletions(-)
jump to
M
openbox/keyboard.c
→
openbox/keyboard.c
@@ -120,6 +120,18 @@ grab_keyboard(FALSE);
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;