X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.c;h=5a22982270f815c2239cbf4a1a2c063f8712da15;hb=beac539f31a37f5eece142d8f3a24349926b7643;hp=cde7e465d138fa14518cf53a7d56692811158274;hpb=6b345353e37e8af8eaa83956ef378015c0046eda;p=dwm.git diff --git a/main.c b/main.c index cde7e46..5a22982 100644 --- a/main.c +++ b/main.c @@ -4,6 +4,7 @@ #include "dwm.h" #include +#include #include #include #include @@ -39,9 +40,9 @@ static Bool otherwm, readin; static void cleanup(void) { close(STDIN_FILENO); - while(sel) { - resize(sel, True, TopLeft); - unmanage(sel); + while(clients) { + resize(clients, True, TopLeft); + unmanage(clients); } if(dc.font.set) XFreeFontSet(dpy, dc.font.set); @@ -240,6 +241,7 @@ main(int argc, char *argv[]) { } else if(argc != 1) eprint("usage: dwm [-v]\n"); + setlocale(LC_CTYPE, ""); dpy = XOpenDisplay(0); if(!dpy) eprint("dwm: cannot open display\n");