aewl

diff client.c @ 9:d567f430a81d

fixed several stuff (gridwm gets better and better)
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 12:52:57 +0200
parents 49e2fc9fb94f
children 703255003abb
line diff
     1.1 --- a/client.c	Tue Jul 11 11:50:18 2006 +0200
     1.2 +++ b/client.c	Tue Jul 11 12:52:57 2006 +0200
     1.3 @@ -51,7 +51,6 @@
     1.4  	c->r[RFloat].height = wa->height;
     1.5  	c->border = wa->border_width;
     1.6  	XSetWindowBorderWidth(dpy, c->win, 0);
     1.7 -	c->proto = win_proto(c->win);
     1.8  	XGetTransientForHint(dpy, c->win, &c->trans);
     1.9  	if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags)
    1.10  		c->size.flags = PSize;
    1.11 @@ -59,7 +58,6 @@
    1.12  		(c->size.flags & PMinSize && c->size.flags & PMaxSize
    1.13  		 && c->size.min_width == c->size.max_width
    1.14  		 && c->size.min_height == c->size.max_height);
    1.15 -	XAddToSaveSet(dpy, c->win);
    1.16  	update_client_name(c);
    1.17  	twa.override_redirect = 1;
    1.18  	twa.background_pixmap = ParentRelative;
    1.19 @@ -87,3 +85,13 @@
    1.20  	XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    1.21  	XFlush(dpy);
    1.22  }
    1.23 +
    1.24 +Client *
    1.25 +getclient(Window w)
    1.26 +{
    1.27 +	Client *c;
    1.28 +	for(c = clients; c; c = c->next)
    1.29 +		if(c->win == w)
    1.30 +			return c;
    1.31 +	return NULL;
    1.32 +}