aewl

diff client.c @ 319:94d2d7658673

after switching to OpenBSD again, I switched back to a saner color scheme
author arg@localhost.10kloc.org
date Mon, 21 Aug 2006 17:41:09 +0200
parents 1b45d6f14fca
children 30b447bad2e5
line diff
     1.1 --- a/client.c	Mon Aug 21 09:03:14 2006 +0200
     1.2 +++ b/client.c	Mon Aug 21 17:41:09 2006 +0200
     1.3 @@ -73,12 +73,14 @@
     1.4  {
     1.5  	Client *old = sel;
     1.6  
     1.7 -	if (!issel)
     1.8 +	if(!issel)
     1.9  		return;
    1.10 -	if(sel && sel->ismax && sel != c)
    1.11 -		togglemax(NULL);
    1.12 -	sel = c;
    1.13 -	if(old && old != c) {
    1.14 +	if(!sel)
    1.15 +		sel = c;
    1.16 +	else if(sel != c) {
    1.17 +		if(sel->ismax)
    1.18 +			togglemax(NULL);
    1.19 +		sel = c;
    1.20  		grabbutton(old, AnyButton, 0);
    1.21  		drawtitle(old);
    1.22  	}