]> Dogcows Code - chaz/openbox/blobdiff - openbox/menuframe.c
fix no more crashing in the client menu.
[chaz/openbox] / openbox / menuframe.c
index 6ca876fa34409f9f778184570bab07d0a824ae69..a2760aa17881ec8f6c2cf6d1b74043c728748543 100644 (file)
@@ -1169,13 +1169,16 @@ void menu_entry_frame_execute(ObMenuEntryFrame *self, guint state, Time time)
         gpointer data = self->frame->menu->data;
         GSList *acts = self->entry->data.normal.actions;
         ObClient *client = self->frame->client;
+        ObMenuFrame *frame = self->frame;
 
         /* release grabs before executing the shit */
-        if (!(state & ControlMask))
+        if (!(state & ControlMask)) {
             menu_frame_hide_all();
+            frame = NULL;
+        }
 
         if (func)
-            func(entry, state, data, time);
+            func(entry, frame, client, state, data, time);
         else
             action_run(acts, client, state, time);
     }
This page took 0.022693 seconds and 4 git commands to generate.