]> Dogcows Code - chaz/openbox/blobdiff - openbox/menuframe.c
only execute enabled items
[chaz/openbox] / openbox / menuframe.c
index efafe30b3da4b7280788bb4b3c9dcfdeda7a3b0a..56dbc647c48b1702f6f1f8eb1a331780fa56b0c1 100644 (file)
@@ -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;
This page took 0.022836 seconds and 4 git commands to generate.