From 30577e3d8dcdf8958eb1fded7456b45c9a67e2c9 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 18 Jan 2010 16:48:27 +0100 Subject: [PATCH] Don't close the menu when you held control even for execute --- openbox/actions/execute.c | 3 ++- openbox/menuframe.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openbox/actions/execute.c b/openbox/actions/execute.c index cb3ab247..4e0dfd8a 100644 --- a/openbox/actions/execute.c +++ b/openbox/actions/execute.c @@ -145,7 +145,8 @@ static gboolean run_func(ObActionsData *data, gpointer options) /* If there is a keyboard grab going on then we need to cancel it so the application can grab things */ - event_cancel_all_key_grabs(); + if (data->uact != OB_USER_ACTION_MENU_SELECTION) + event_cancel_all_key_grabs(); if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) { g_message(e->message, o->cmd); diff --git a/openbox/menuframe.c b/openbox/menuframe.c index f013bdec..a3c36342 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -1255,7 +1255,7 @@ void menu_entry_frame_execute(ObMenuEntryFrame *self, guint state) /* release grabs before executing the shit */ if (!(state & ControlMask)) { - menu_frame_hide_all(); + event_cancel_all_key_grabs(); frame = NULL; } -- 2.34.1