changeset: 333:f1fc58c548ae
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Wed Jun 30 10:45:24 2010 +0100
files: dmenu.c
description:
fixed no-input invisible text bug
diff -r 313ede111c1d -r f1fc58c548ae dmenu.c
--- a/dmenu.c Wed Jun 30 01:36:15 2010 +0100
+++ b/dmenu.c Wed Jun 30 10:45:24 2010 +0100
@@ -182,7 +182,7 @@
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 @@
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);
Received on Wed Jun 30 2010 - 09:46:33 UTC
This archive was generated by hypermail 2.2.0 : Wed Jun 30 2010 - 09:48:04 UTC