From ecdf24a5dbc658498309c821e40dd3b6e3a38a5b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 23 Aug 2003 16:21:25 +0000 Subject: [PATCH] end the other action when starting a new interactive action while one was in place --- openbox/keyboard.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- 2.45.2