From ef72d59495ce2961f854f4de7e60476d709194db Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Tue, 11 May 2021 14:26:32 -0400 Subject: [PATCH] get rid of cursor --- dmenubar/dmenu.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dmenubar/dmenu.c b/dmenubar/dmenu.c index 0981bd4..d8dc767 100644 --- a/dmenubar/dmenu.c +++ b/dmenubar/dmenu.c @@ -115,7 +115,6 @@ drawitem(struct item *item, int x, int y, int w) static void drawmenu(void) { - unsigned int curpos; struct item *item; int x = 0, y = 0, w; @@ -131,12 +130,6 @@ drawmenu(void) drw_setscheme(drw, scheme[SchemeNorm]); drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); - curpos = TEXTW(text) - TEXTW(&text[cursor]); - if ((curpos += lrpad / 2 - 1) < w) { - drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0); - } - if (matches) { /* draw horizontal list */ x += inputw;