]> Dogcows Code - chaz/openbox/commitdiff
only hilight the first entry when opening the menu with a keybind
authorMikael Magnusson <mikachu@comhem.se>
Sun, 27 May 2007 23:11:14 +0000 (23:11 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sun, 27 May 2007 23:11:14 +0000 (23:11 +0000)
openbox/menu.c

index fe664d3516ac58250e530b063eec2ac2a70208b1..71eb0591bc211b2e46cb6bcb071f63290a95d5f7 100644 (file)
@@ -396,8 +396,9 @@ void menu_show(gchar *name, gint x, gint y, gint button, ObClient *client)
     frame = menu_frame_new(self, 0, client);
     if (!menu_frame_show_topmenu(frame, x, y, button))
         menu_frame_free(frame);
-    else {
-        /* select the first entry if it's not a submenu */
+    else if (!button) {
+        /* select the first entry if it's not a submenu and we opened
+         * the menu with the keyboard, and skip all headers */
         GList *it = frame->entries;
         while (it) {
             ObMenuEntryFrame *e = it->data;
This page took 0.028034 seconds and 4 git commands to generate.