X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=main.c;h=7b150f6edd203d425646115a8a94f7e17f3e31aa;hp=07e12aa3420d62739ba5287ae494d6fb71c74c34;hb=7fe717c29f9dafc4fc38313adbbb7c85619dec69;hpb=efa7e514012865fcb3e9ea6e7d5b5c87d84353e5 diff --git a/main.c b/main.c index 07e12aa..7b150f6 100644 --- a/main.c +++ b/main.c @@ -33,9 +33,8 @@ Cursor cursor[CurLast]; Bool running = True; Bool issel; -char stext[1024]; int tsel = Tdev; /* default tag */ -int screen, sx, sy, sw, sh, th; +int screen, sx, sy, sw, sh, mw, th; DC dc = {0}; Client *clients = NULL; @@ -169,7 +168,7 @@ static void cleanup() { while(sel) { - resize(sel); + resize(sel, True); unmanage(sel); } XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); @@ -223,6 +222,7 @@ main(int argc, char *argv[]) sx = sy = 0; sw = DisplayWidth(dpy, screen); sh = DisplayHeight(dpy, screen); + mw = (sw * MASTERW) / 100; issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); XSetErrorHandler(0);