diff options
author | okan | 2013-12-02 19:49:26 +0000 |
---|---|---|
committer | okan | 2013-12-02 19:49:26 +0000 |
commit | 4bb691ce31f8eed5c74c4fdd24a18729ed79e463 (patch) | |
tree | 3d7652f9e9c88fc509bd484a771f02f86ba0adf5 /menu.c | |
parent | cf859c3404f849ec7907cfbc1e0f89e496b4a823 (diff) | |
download | cwm-4bb691ce31f8eed5c74c4fdd24a18729ed79e463.tar.gz |
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.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.66 2013/06/17 17:11:10 okan Exp $ + * $OpenBSD: menu.c,v 1.67 2013/12/02 19:49:26 okan Exp $ */ #include <sys/param.h> @@ -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 |