diff options
author | okan <okan> | 2013-12-02 19:49:26 +0000 |
---|---|---|
committer | okan <okan> | 2013-12-02 19:49:26 +0000 |
commit | 161ed1801aa57e0fbb2f88be508d2dd0d1873d09 (patch) | |
tree | 822da350cabb33df76b5bf4d6daf3c13ed34dfe7 | |
parent | d1b232fe8111cb748383727528aa90bbe740b507 (diff) | |
download | cwm-161ed1801aa57e0fbb2f88be508d2dd0d1873d09.tar.gz cwm-161ed1801aa57e0fbb2f88be508d2dd0d1873d09.tar.xz cwm-161ed1801aa57e0fbb2f88be508d2dd0d1873d09.zip |
Always highlight the first menu item (helpful to see selected items when
not using a mouse and therefore not generating Expose/MotionNotify events); from Thomas Adam.
-rw-r--r-- | menu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/menu.c b/menu.c index ddb1c65..822e3b2 100644 --- a/menu.c +++ b/menu.c @@ -427,10 +427,8 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq) xu_xft_draw(sc, text, CWM_COLOR_MENU_FONT, 0, y); n++; } - if (mc->hasprompt && n > 1 && (mc->searchstr[0] != '\0')) { - mc->entry = 1; - menu_draw_entry(mc, resultq, mc->entry, 1); - } + if (mc->hasprompt && n > 1) + menu_draw_entry(mc, resultq, 1, 1); } static void |