]> Dogcows Code - chaz/openbox/blobdiff - openbox/menu.c
changes to the client menu, which entries are there, and reorganizing, and renaming.
[chaz/openbox] / openbox / menu.c
index 9aed40aa8d6311bffc4adb20da9635a94ac83849..741e27c12be7a5fc79375d96c8aa64ee5d9f2a25 100644 (file)
@@ -382,10 +382,10 @@ void menu_show(gchar *name, gint x, gint y, gint button, ObClient *client)
     if (!menu_frame_show_topmenu(frame, x, y, button))
         menu_frame_free(frame);
     else if (frame->entries) {
+        /* select the first entry if it's not a submenu */
         ObMenuEntryFrame *e = frame->entries->data;
-        if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL &&
-            e->entry->data.normal.enabled)
-                menu_frame_select(frame, e, FALSE);
+        if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL)
+            menu_frame_select(frame, e, FALSE);
     }
 }
 
This page took 0.024765 seconds and 4 git commands to generate.