only hilight the first entry when opening the menu with a keybind
This commit is contained in:
parent
c53db44602
commit
0c8c23e8fd
1 changed files with 3 additions and 2 deletions
|
@ -396,8 +396,9 @@ void menu_show(gchar *name, gint x, gint y, gint button, ObClient *client)
|
||||||
frame = menu_frame_new(self, 0, client);
|
frame = menu_frame_new(self, 0, client);
|
||||||
if (!menu_frame_show_topmenu(frame, x, y, button))
|
if (!menu_frame_show_topmenu(frame, x, y, button))
|
||||||
menu_frame_free(frame);
|
menu_frame_free(frame);
|
||||||
else {
|
else if (!button) {
|
||||||
/* select the first entry if it's not a submenu */
|
/* 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;
|
GList *it = frame->entries;
|
||||||
while (it) {
|
while (it) {
|
||||||
ObMenuEntryFrame *e = it->data;
|
ObMenuEntryFrame *e = it->data;
|
||||||
|
|
Loading…
Reference in a new issue