diff options
author | okan <okan> | 2013-12-02 20:01:19 +0000 |
---|---|---|
committer | okan <okan> | 2013-12-02 20:01:19 +0000 |
commit | 873763f4c6a4369d703274a279296200bfd271a2 (patch) | |
tree | b9e271a8395656cebd2de507b6abffda288d9ed6 /menu.c | |
parent | 3c78191e2ef0b51da1f70327cc9b7e087413f88d (diff) | |
parent | 5dc65d9242c423fd4f45ec48c32e525d9f1300f2 (diff) | |
download | cwm-873763f4c6a4369d703274a279296200bfd271a2.tar.gz cwm-873763f4c6a4369d703274a279296200bfd271a2.tar.xz cwm-873763f4c6a4369d703274a279296200bfd271a2.zip |
cvsimport
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/menu.c b/menu.c index 6277595..af9eda1 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 @@ -477,9 +475,6 @@ menu_handle_move(XEvent *e, struct menu_ctx *mc, struct menu_q *resultq) menu_draw_entry(mc, resultq, mc->entry, 1); } else (void)xu_ptr_regrab(MENUGRABMASK, Conf.cursor[CF_DEFAULT]); - - if (mc->hasprompt) - menu_draw_entry(mc, resultq, 1, 1); } static struct menu * |