X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=main.c;h=eff5ce90674a8a3b72297aebdc971d907f9df987;hp=b63d07effdc27e17fa5f8f781626ceaa55aa7a2f;hb=3aad92202d58208c4197857d3f17c535ba0bd56a;hpb=9e8b3258a06de01c53e60243ffe3419b47d016dd diff --git a/main.c b/main.c index b63d07e..eff5ce9 100644 --- a/main.c +++ b/main.c @@ -33,13 +33,12 @@ 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; -Client *stack = NULL; +Client *sel = NULL; static Bool other_wm_running; static const char version[] = @@ -168,13 +167,15 @@ startup_error_handler(Display *dpy, XErrorEvent *error) static void cleanup() { - while(clients) - unmanage(clients); + while(sel) { + resize(sel); + unmanage(sel); + } XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); } void -quit(void *aux) +quit(Arg *arg) { running = False; } @@ -221,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);