pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f6af5e
)
foo
author
Anselm R Garbe
<garbeam@gmail.com>
Tue, 20 May 2008 14:07:42 +0000
(15:07 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Tue, 20 May 2008 14:07:42 +0000
(15:07 +0100)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
0faa02e
..
4d23d9d
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-728,8
+728,7
@@
main(int argc, char *argv[]) {
eprint("usage: dmenu [-i] [-b] [-fn <font>] [-nb <color>] [-nf <color>]\n"
" [-p <prompt>] [-sb <color>] [-sf <color>] [-v]\n");
setlocale(LC_CTYPE, "");
- dpy = XOpenDisplay(0);
- if(!dpy)
+ if(!(dpy = XOpenDisplay(0)))
eprint("dmenu: cannot open display\n");
screen = DefaultScreen(dpy);
root = RootWindow(dpy, screen);