summaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu.c')
-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);