aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-05-05 11:42:39 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-05-05 11:42:39 +0100
commit5bc288b2b1270957baab2142e1e8b20b796fed11 (patch)
tree772b4f194ece08e490a8dce2f1845fe08fe6d9ae
parenta6835349dfeafb994f250fcf98acc6dd74f010c2 (diff)
downloaddmenu-5bc288b2b1270957baab2142e1e8b20b796fed11.tar.gz
dmenu-5bc288b2b1270957baab2142e1e8b20b796fed11.tar.bz2
dmenu-5bc288b2b1270957baab2142e1e8b20b796fed11.zip
fixed vlist alignment
-rw-r--r--dmenu.c3
1 files changed, 1 insertions, 2 deletions
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);