]> Dogcows Code - chaz/openbox/commitdiff
Don't close the menu when you held control even for execute
authorMikael Magnusson <mikachu@gmail.com>
Mon, 18 Jan 2010 15:48:27 +0000 (16:48 +0100)
committerDana Jansens <danakj@orodu.net>
Thu, 28 Jan 2010 13:40:07 +0000 (08:40 -0500)
openbox/actions/execute.c
openbox/menuframe.c

index 77244d8f1d5dc1ad686a50e161cc91744882cb90..0e9e7387e518cc19f55382c8ac937ac79367ad2f 100644 (file)
@@ -206,7 +206,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();
 
     e = NULL;
     if (!g_shell_parse_argv(cmd, NULL, &argv, &e)) {
index b235f5eb459d93c5bef80d4d5a53abc22cb99215..afffc837cd836a2e1fb668c326c1913b315f3dca 100644 (file)
@@ -1266,7 +1266,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;
         }
 
This page took 0.027452 seconds and 4 git commands to generate.