all repos — openbox @ d911fbf44cd1517580f42190c68173f5aee2f148

openbox fork - make it a bit more like ryudo

only execute enabled items
Dana Jansens danakj@orodu.net
commit

d911fbf44cd1517580f42190c68173f5aee2f148

parent

0e29139be4faf90baa936b026be7848871460c97

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M openbox/menuframe.copenbox/menuframe.c

@@ -571,7 +571,9 @@ }

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;