X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.c;h=0691029e00b03e23397dacc73176819337ddfc35;hb=2431ae7df7f654f6dbe5e923fadf703eaa4a7bf4;hp=188e445d208ce7aeb733b5916261da5e820a844e;hpb=277155cf775369ad9645e68da59339acdc8f1117;p=dwm.git diff --git a/dwm.c b/dwm.c index 188e445..0691029 100644 --- a/dwm.c +++ b/dwm.c @@ -962,7 +962,7 @@ monocle(void) { Client *c; for(c = nexttiled(clients); c; c = nexttiled(c->next)) - resize(c, wx, wy, ww, wh, resizehints); + resize(c, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw, resizehints); } void @@ -1704,7 +1704,9 @@ main(int argc, char *argv[]) { else if(argc != 1) eprint("usage: dwm [-v]\n"); - setlocale(LC_CTYPE, ""); + if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) + fprintf(stderr, "warning: no locale support\n"); + if(!(dpy = XOpenDisplay(0))) eprint("dwm: cannot open display\n");