Xinqi Bao's Git
projects
/
dmenu.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
26b9f3d
)
fixed no-input invisible text bug
author
Connor Lane Smith <
[email protected]
>
Wed, 30 Jun 2010 09:45:24 +0000
(10:45 +0100)
committer
Connor Lane Smith <
[email protected]
>
Wed, 30 Jun 2010 09:45:24 +0000
(10:45 +0100)
dmenu.c
diff
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
c353c60
..
9315181
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-182,7
+182,7
@@
drawmenu(void) {
drawtext(&dc, *text ? text : NULL, normcol, False);
if(lines > 0)
drawmenuv();
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);
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;
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);
dc.x += dc.w;
for(i = curr; i != next; i = i->right) {
dc.w = MIN(textw(&dc, i->text), mw / 3);