diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2007-05-27 23:11:14 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2007-05-27 23:11:14 +0000 |
| commit | 0c8c23e8fdef2936d2ca425dcbf35e4eb7dd7edf (patch) | |
| tree | f16ed81180704d810dfbd7a86576933e247cb783 /openbox/menu.c | |
| parent | c53db4460274e9c80a915fe497b8c619da816f95 (diff) | |
only hilight the first entry when opening the menu with a keybind
Diffstat (limited to 'openbox/menu.c')
| -rw-r--r-- | openbox/menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |
