X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmenu.c;h=71eb0591bc211b2e46cb6bcb071f63290a95d5f7;hb=999cf25006b063048bff905924bb31eb7c4f9119;hp=fe664d3516ac58250e530b063eec2ac2a70208b1;hpb=7f9080c6a0679aab23e7519dcc6d8498f4e28a0f;p=chaz%2Fopenbox diff --git a/openbox/menu.c b/openbox/menu.c index fe664d35..71eb0591 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -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;