dwm-meillo

diff client.c @ 261:d6fd632d861c

implement multi-tag selection through button3 click on the specific tag
author Anselm R.Garbe <arg@10ksloc.org>
date Fri, 11 Aug 2006 18:37:41 +0200
parents 3692c9324977
children dacd3f3c5823
line diff
     1.1 --- a/client.c	Fri Aug 11 18:11:39 2006 +0200
     1.2 +++ b/client.c	Fri Aug 11 18:37:41 2006 +0200
     1.3 @@ -24,7 +24,7 @@
     1.4  		c->tw = c->w + 2;
     1.5  	c->tx = c->x + c->w - c->tw + 2;
     1.6  	c->ty = c->y;
     1.7 -	if(c->tags[tsel])
     1.8 +	if(isvisible(c))
     1.9  		XMoveResizeWindow(dpy, c->title, c->tx, c->ty, c->tw, c->th);
    1.10  	else
    1.11  		XMoveResizeWindow(dpy, c->title, c->tx + 2 * sw, c->ty, c->tw, c->th);
    1.12 @@ -276,7 +276,7 @@
    1.13  	/* mapping the window now prevents flicker */
    1.14  	XMapRaised(dpy, c->win);
    1.15  	XMapRaised(dpy, c->title);
    1.16 -	if(c->tags[tsel])
    1.17 +	if(isvisible(c))
    1.18  		focus(c);
    1.19  }
    1.20