dmenu

My custom build of dmenu.
Log | Files | Refs | README | LICENSE

commit 357558798c435f1737b13085b30e2e9e7be3616a
parent 1f6af5e78f74c80fcb9853dcc2fc7940538808b0
Author: Anselm R Garbe <garbeam@gmail.com>
Date:   Tue, 20 May 2008 15:07:42 +0100

foo
Diffstat:
Mdmenu.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 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);