aewl

diff main.c @ 50:148f25ed0ad7

several other additions/fixes, dwm is quite usable already
author Anselm R. Garbe <garbeam@wmii.de>
date Thu, 13 Jul 2006 18:21:38 +0200
parents 466591c2f967
children 035617ee18d1
line diff
     1.1 --- a/main.c	Thu Jul 13 17:09:35 2006 +0200
     1.2 +++ b/main.c	Thu Jul 13 18:21:38 2006 +0200
     1.3 @@ -38,9 +38,8 @@
     1.4  int screen, sx, sy, sw, sh, th;
     1.5  
     1.6  DC dc = {0};
     1.7 -Client *cstart = NULL;
     1.8 -Client *cend = NULL;
     1.9 -Client *csel = NULL;
    1.10 +Client *clients = NULL;
    1.11 +Client *sel = NULL;
    1.12  
    1.13  static Bool other_wm_running;
    1.14  static const char version[] =
    1.15 @@ -169,8 +168,10 @@
    1.16  static void
    1.17  cleanup()
    1.18  {
    1.19 -	while(csel)
    1.20 -		unmanage(csel);
    1.21 +	while(sel) {
    1.22 +		resize(sel);
    1.23 +		unmanage(sel);
    1.24 +	}
    1.25  	XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
    1.26  }
    1.27