From: Dana Jansens Date: Thu, 28 Aug 2003 18:34:06 +0000 (+0000) Subject: only execute enabled items X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=d911fbf44cd1517580f42190c68173f5aee2f148;p=chaz%2Fopenbox only execute enabled items --- diff --git a/openbox/menuframe.c b/openbox/menuframe.c index efafe30b..56dbc647 100644 --- a/openbox/menuframe.c +++ b/openbox/menuframe.c @@ -571,7 +571,9 @@ void menu_entry_frame_show_submenu(ObMenuEntryFrame *self) void menu_entry_frame_execute(ObMenuEntryFrame *self, gboolean hide) { - if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL) { + if (self->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && + self->entry->data.normal.enabled) + { /* grab all this shizzle, cuz when the menu gets hidden, 'self' gets freed */ ObMenuEntry *entry = self->entry;