X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=main.c;h=07e12aa3420d62739ba5287ae494d6fb71c74c34;hp=543d156cad6bc89222d3ec5137a4ce18fd808813;hb=efa7e514012865fcb3e9ea6e7d5b5c87d84353e5;hpb=c47da143bdf5b4e3924a411f42648d4b3e86ff00 diff --git a/main.c b/main.c index 543d156..07e12aa 100644 --- a/main.c +++ b/main.c @@ -38,9 +38,8 @@ int tsel = Tdev; /* default tag */ int screen, sx, sy, sw, sh, th; DC dc = {0}; -Client *cstart = NULL; -Client *cend = NULL; -Client *csel = NULL; +Client *clients = NULL; +Client *sel = NULL; static Bool other_wm_running; static const char version[] = @@ -169,8 +168,10 @@ startup_error_handler(Display *dpy, XErrorEvent *error) static void cleanup() { - while(csel) - unmanage(csel); + while(sel) { + resize(sel); + unmanage(sel); + } XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); }