From f6a750db086342e534c4085d3d05ea41b864623f Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Tue, 11 May 2021 14:48:58 -0400 Subject: [PATCH] refinement --- dmenubar/dmenu.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/dmenubar/dmenu.c b/dmenubar/dmenu.c index af9fee5..3f6111d 100644 --- a/dmenubar/dmenu.c +++ b/dmenubar/dmenu.c @@ -124,28 +124,7 @@ drawmenu(void) drw_setscheme(drw, scheme[SchemeSel]); x = drw_text(drw, x, 0, promptw, bh, lrpad / 2, prompt, 0); } - /* draw input field */ - w = (!matches) ? mw - x : inputw; - drw_setscheme(drw, scheme[SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); - if (matches) { - /* draw horizontal list */ - x += inputw; - w = TEXTW("<"); - if (curr->left) { - drw_setscheme(drw, scheme[SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, "<", 0); - } - x += w; - for (item = curr; item != next; item = item->right) - x = drawitem(item, x, 0, MIN(TEXTW(item->text), mw - x - TEXTW(">"))); - if (next) { - w = TEXTW(">"); - drw_setscheme(drw, scheme[SchemeNorm]); - drw_text(drw, mw - w, 0, w, bh, lrpad / 2, ">", 0); - } - } drw_map(drw, win, 0, 0, mw, mh); }