aewl

diff client.c @ 283:134804791d73

added some flicker prevention
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 14 Aug 2006 16:37:55 +0200
parents be40a56df248
children ff501d94de62
line diff
     1.1 --- a/client.c	Mon Aug 14 16:26:06 2006 +0200
     1.2 +++ b/client.c	Mon Aug 14 16:37:55 2006 +0200
     1.3 @@ -262,11 +262,13 @@
     1.4  				c->maxw == c->minw && c->maxh == c->minh);
     1.5  	settitle(c);
     1.6  
     1.7 +	if(isvisible(c))
     1.8 +		sel = c;
     1.9 +	arrange(NULL);
    1.10  	XMapWindow(dpy, c->win);
    1.11  	XMapWindow(dpy, c->title);
    1.12  	if(isvisible(c))
    1.13  		focus(c);
    1.14 -	arrange(NULL);
    1.15  }
    1.16  
    1.17  void