aewl

diff client.c @ 16:359b6e563b95

several changes, new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 18:53:41 +0200
parents 5c078b66347b
children 1efa34c6e1b6
line diff
     1.1 --- a/client.c	Tue Jul 11 18:19:01 2006 +0200
     1.2 +++ b/client.c	Tue Jul 11 18:53:41 2006 +0200
     1.3 @@ -35,6 +35,10 @@
     1.4  		}
     1.5  	}
     1.6  	XFree(name.value);
     1.7 +	if(c == stack)
     1.8 +		draw_bar();
     1.9 +	else
    1.10 +		draw_client(c);
    1.11  }
    1.12  
    1.13  void
    1.14 @@ -66,6 +70,7 @@
    1.15  	c->r[RFloat].height = wa->height;
    1.16  	c->border = wa->border_width;
    1.17  	XSetWindowBorderWidth(dpy, c->win, 0);
    1.18 +	XSelectInput(dpy, c->win, StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
    1.19  	XGetTransientForHint(dpy, c->win, &c->trans);
    1.20  	if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags)
    1.21  		c->size.flags = PSize;