diff options
author | Connor Lane Smith <cls@lubutu.com> | 2010-06-30 10:45:24 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2010-06-30 10:45:24 +0100 |
commit | 309d071df557142e6efc328bd1475760b4f576e6 (patch) | |
tree | 911633a8d956cb4c5843425dfcc0dabad0c5c29d /dmenu.c | |
parent | 26b9f3de0ffe471e5335b07454147457e373c037 (diff) | |
download | dmenu-309d071df557142e6efc328bd1475760b4f576e6.tar.gz dmenu-309d071df557142e6efc328bd1475760b4f576e6.tar.bz2 dmenu-309d071df557142e6efc328bd1475760b4f576e6.zip |
fixed no-input invisible text bug
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -182,7 +182,7 @@ drawmenu(void) { drawtext(&dc, *text ? text : NULL, normcol, False); if(lines > 0) drawmenuv(); - else + else if(curr) drawmenuh(); XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, mw, mh, 0, 0); XFlush(dpy); @@ -194,7 +194,7 @@ drawmenuh(void) { dc.x += cmdw; dc.w = spaceitem; - drawtext(&dc, curr && curr->left ? "<" : NULL, normcol, False); + drawtext(&dc, curr->left ? "<" : NULL, normcol, False); dc.x += dc.w; for(i = curr; i != next; i = i->right) { dc.w = MIN(textw(&dc, i->text), mw / 3); |