Introduction
Introduction Statistics Contact Development Disclaimer Help
tsome NULL fixes - dwm - [fork] customized build of dwm, the dynamic window man…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit f0d1d5206f926f58b259af3294a4eebf53a9e7bd
parent 1c80c05587e0f9fc23fb774aa2ef3b297fc8f6d8
Author: Anselm R Garbe <[email protected]>
Date: Sat, 21 Feb 2009 19:20:11 +0000
some NULL fixes
Diffstat:
M dwm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dwm.c b/dwm.c
t@@ -1294,7 +1294,7 @@ setup(void) {
dc.sel[ColBG] = getcolor(selbgcolor);
dc.sel[ColFG] = getcolor(selfgcolor);
dc.drawable = XCreatePixmap(dpy, root, DisplayWidth(dpy, screen), bh, …
- dc.gc = XCreateGC(dpy, root, 0, 0);
+ dc.gc = XCreateGC(dpy, root, 0, NULL);
XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
if(!dc.font.set)
XSetFont(dpy, dc.gc, dc.font.xfont->fid);
t@@ -1697,7 +1697,7 @@ main(int argc, char *argv[]) {
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
fputs("warning: no locale support\n", stderr);
- if(!(dpy = XOpenDisplay(0)))
+ if(!(dpy = XOpenDisplay(NULL)))
die("dwm: cannot open display\n");
checkotherwm();
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.