diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-09 00:11:06 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-09 00:11:06 +0000 |
| commit | f0fdba8ad36010280fc84c2425010c195b76562a (patch) | |
| tree | 3c9030e02b5e14b2e0f0c0c5728c106769a90fb4 /openbox/menuframe.c | |
| parent | 1361a87bdff4a04c4c5e273bafa7a90c16368b67 (diff) | |
fix no more crashing in the client menu.
Diffstat (limited to 'openbox/menuframe.c')
| -rw-r--r-- | openbox/menuframe.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c index 6ca876fa..a2760aa1 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -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); } |
