diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-12-02 19:49:27 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-12-02 19:49:27 +0000 |
commit | ef1a3b9a611c6958a4b17808666e6912587023a5 (patch) | |
tree | 0668f7526a3bcdc0d83dd99ff21671b69f65d3f2 | |
parent | f436d272d0423973315314885aa77ac19546fc5e (diff) |
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-- | app/cwm/menu.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/cwm/menu.c b/app/cwm/menu.c index 9c5698028..3cd272239 100644 --- a/app/cwm/menu.c +++ b/app/cwm/menu.c @@ -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 |