fixed vlist alignment
authorConnor Lane Smith <cls@lubutu.com>
Wed, 5 May 2010 10:42:39 +0000 (11:42 +0100)
committerConnor Lane Smith <cls@lubutu.com>
Wed, 5 May 2010 10:42:39 +0000 (11:42 +0100)
dmenu.c

diff --git a/dmenu.c b/dmenu.c
index 1762dba..bebc206 100644 (file)
--- 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);