|
|
@ -557,7 +557,7 @@ configurenotify(XEvent *e) { |
|
|
|
XConfigureEvent *ev = &e->xconfigure; |
|
|
|
XConfigureEvent *ev = &e->xconfigure; |
|
|
|
Bool dirty; |
|
|
|
Bool dirty; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: updategeom handling sucks, needs to be simplified
|
|
|
|
/* TODO: updategeom handling sucks, needs to be simplified */ |
|
|
|
if(ev->window == root) { |
|
|
|
if(ev->window == root) { |
|
|
|
dirty = (sw != ev->width || sh != ev->height); |
|
|
|
dirty = (sw != ev->width || sh != ev->height); |
|
|
|
sw = ev->width; |
|
|
|
sw = ev->width; |
|
|
@ -1509,7 +1509,7 @@ setup(void) { |
|
|
|
drw = drw_create(dpy, screen, root, sw, sh); |
|
|
|
drw = drw_create(dpy, screen, root, sw, sh); |
|
|
|
drw_load_fonts(drw, fonts, LENGTH(fonts)); |
|
|
|
drw_load_fonts(drw, fonts, LENGTH(fonts)); |
|
|
|
if (!drw->fontcount) |
|
|
|
if (!drw->fontcount) |
|
|
|
die("No fonts could be loaded.\n"); |
|
|
|
die("no fonts could be loaded.\n"); |
|
|
|
bh = drw->fonts[0]->h + 2; |
|
|
|
bh = drw->fonts[0]->h + 2; |
|
|
|
updategeom(); |
|
|
|
updategeom(); |
|
|
|
/* init atoms */ |
|
|
|
/* init atoms */ |
|
|
@ -1572,7 +1572,7 @@ showhide(Client *c) { |
|
|
|
void |
|
|
|
void |
|
|
|
sigchld(int unused) { |
|
|
|
sigchld(int unused) { |
|
|
|
if(signal(SIGCHLD, sigchld) == SIG_ERR) |
|
|
|
if(signal(SIGCHLD, sigchld) == SIG_ERR) |
|
|
|
die("Can't install SIGCHLD handler"); |
|
|
|
die("can't install SIGCHLD handler:"); |
|
|
|
while(0 < waitpid(-1, NULL, WNOHANG)); |
|
|
|
while(0 < waitpid(-1, NULL, WNOHANG)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2054,7 +2054,7 @@ zoom(const Arg *arg) { |
|
|
|
int |
|
|
|
int |
|
|
|
main(int argc, char *argv[]) { |
|
|
|
main(int argc, char *argv[]) { |
|
|
|
if(argc == 2 && !strcmp("-v", argv[1])) |
|
|
|
if(argc == 2 && !strcmp("-v", argv[1])) |
|
|
|
die("dwm-"VERSION", © 2006-2014 dwm engineers, see LICENSE for details\n"); |
|
|
|
die("dwm-"VERSION", © 2006-2015 dwm engineers, see LICENSE for details\n"); |
|
|
|
else if(argc != 1) |
|
|
|
else if(argc != 1) |
|
|
|
die("usage: dwm [-v]\n"); |
|
|
|
die("usage: dwm [-v]\n"); |
|
|
|
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) |
|
|
|
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) |
|
|
|