aewl

changeset 549:fd1061442711

applied sanders try2 patch
author arg@mig29
date Fri, 27 Oct 2006 13:28:26 +0200
parents 3d23384eb5ab
children 787f6ae02f29
files client.c dwm.h event.c view.c
diffstat 4 files changed, 6 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/client.c	Fri Oct 27 12:05:47 2006 +0200
     1.2 +++ b/client.c	Fri Oct 27 13:28:26 2006 +0200
     1.3 @@ -209,6 +209,8 @@
     1.4  	c->h = wa->height;
     1.5  	c->th = bh;
     1.6  	updatesize(c);
     1.7 +	c->isfixed = (c->maxw && c->minw && c->maxh && c->minh &&
     1.8 +				c->maxw == c->minw && c->maxh == c->minh);
     1.9  	if(c->x + c->w + 2 * BORDERPX > sw)
    1.10  		c->x = sw - c->w - 2 * BORDERPX;
    1.11  	if(c->x < sx)
    1.12 @@ -232,9 +234,7 @@
    1.13  	updatetitle(c);
    1.14  	settags(c, getclient(trans));
    1.15  	if(!c->isfloat)
    1.16 -		c->isfloat = trans
    1.17 -			|| (c->maxw && c->minw && c->maxh && c->minh &&
    1.18 -				c->maxw == c->minw && c->maxh == c->minh);
    1.19 +		c->isfloat = trans || c->isfixed;
    1.20  	resizetitle(c);
    1.21  	if(clients)
    1.22  		clients->prev = c;
     2.1 --- a/dwm.h	Fri Oct 27 12:05:47 2006 +0200
     2.2 +++ b/dwm.h	Fri Oct 27 13:28:26 2006 +0200
     2.3 @@ -83,7 +83,7 @@
     2.4  	int grav;
     2.5  	long flags; 
     2.6  	unsigned int border, weight;
     2.7 -	Bool isfloat, ismax;
     2.8 +	Bool isfloat, isfixed, ismax;
     2.9  	Bool *tags;
    2.10  	Client *next;
    2.11  	Client *prev;
     3.1 --- a/event.c	Fri Oct 27 12:05:47 2006 +0200
     3.2 +++ b/event.c	Fri Oct 27 13:28:26 2006 +0200
     3.3 @@ -136,7 +136,7 @@
     3.4  		}
     3.5  		else if(ev->button == Button2)
     3.6  			zoom(NULL);
     3.7 -		else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) {
     3.8 +		else if(ev->button == Button3 && (arrange == dofloat || c->isfloat) && !c->isfixed) {
     3.9  			restack();
    3.10  			resizemouse(c);
    3.11  		}
     4.1 --- a/view.c	Fri Oct 27 12:05:47 2006 +0200
     4.2 +++ b/view.c	Fri Oct 27 13:28:26 2006 +0200
     4.3 @@ -45,8 +45,7 @@
     4.4  togglemax(Client *c) {
     4.5  	XEvent ev;
     4.6  		
     4.7 -	if (x->maxw && x->minw && x->maxh && x->minh &&
     4.8 -			x->maxw == x->minw && x->maxh == x->minh)
     4.9 +	if(c->isfixed)
    4.10  		return;
    4.11  
    4.12  	if((c->ismax = !c->ismax)) {