From: Connor Lane Smith Date: Wed, 5 May 2010 10:42:39 +0000 (+0100) Subject: fixed vlist alignment X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=5bc288b2b1270957baab2142e1e8b20b796fed11;p=dmenu.git fixed vlist alignment --- diff --git a/dmenu.c b/dmenu.c index 1762dba..bebc206 100644 --- a/dmenu.c +++ b/dmenu.c @@ -255,8 +255,7 @@ void drawmenuv(void) { Item *i; - dc.x = 0; - dc.w = mw; + dc.w = mw - dc.x; dc.y += dc.font.height + 2; for(i = curr; i != next; i=i->right) { drawtext(i->text, (sel == i) ? dc.sel : dc.norm);