From: Dana Jansens Date: Sat, 23 Aug 2003 16:21:25 +0000 (+0000) Subject: end the other action when starting a new interactive action while one was in place X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ecdf24a5dbc658498309c821e40dd3b6e3a38a5b;p=chaz%2Fopenbox end the other action when starting a new interactive action while one was in place --- 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;