|
|
@ -118,7 +118,7 @@ main(int argc, char *argv[]) { |
|
|
|
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) |
|
|
|
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) |
|
|
|
fputs("warning: no locale support\n", stderr); |
|
|
|
fputs("warning: no locale support\n", stderr); |
|
|
|
if(!(dpy = XOpenDisplay(NULL))) |
|
|
|
if(!(dpy = XOpenDisplay(NULL))) |
|
|
|
die("dwm: cannot open display\n"); |
|
|
|
die("dmenu: cannot open display\n"); |
|
|
|
screen = DefaultScreen(dpy); |
|
|
|
screen = DefaultScreen(dpy); |
|
|
|
root = RootWindow(dpy, screen); |
|
|
|
root = RootWindow(dpy, screen); |
|
|
|
sw = DisplayWidth(dpy, screen); |
|
|
|
sw = DisplayWidth(dpy, screen); |
|
|
|