dwm-meillo

changeset 106:c292574503dd

fixed the bug mentioned by Sander
author arg@10ksloc.org
date Wed, 19 Jul 2006 14:11:27 +0200
parents 3e74cc981e9b
children f5b0c3d22d93
files client.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/client.c	Wed Jul 19 13:52:31 2006 +0200
     1.2 +++ b/client.c	Wed Jul 19 14:11:27 2006 +0200
     1.3 @@ -25,7 +25,11 @@
     1.4  		c->bw = *c->w + 2;
     1.5  	c->bx = *c->x + *c->w - c->bw + 2;
     1.6  	c->by = *c->y;
     1.7 -	XMoveResizeWindow(dpy, c->title, c->bx, c->by, c->bw, c->bh);
     1.8 +	if(c->tags[tsel])
     1.9 +		XMoveResizeWindow(dpy, c->title, c->bx, c->by, c->bw, c->bh);
    1.10 +	else
    1.11 +		XMoveResizeWindow(dpy, c->title, c->bx + 2 * sw, c->by, c->bw, c->bh);
    1.12 +
    1.13  }
    1.14  
    1.15  static int
    1.16 @@ -258,10 +262,8 @@
    1.17  		focus(c);
    1.18  	}
    1.19  	else {
    1.20 -		ban(c);
    1.21  		XMapRaised(dpy, c->win);
    1.22  		XMapRaised(dpy, c->title);
    1.23 -		XSync(dpy, False);
    1.24  	}
    1.25  }
    1.26  
    1.27 @@ -319,9 +321,11 @@
    1.28  		*c->x = right - *c->w;
    1.29  	if(sticky == BotLeft || sticky == BotRight)
    1.30  		*c->y = bottom - *c->h;
    1.31 +
    1.32  	resizetitle(c);
    1.33  	XSetWindowBorderWidth(dpy, c->win, 1);
    1.34  	XMoveResizeWindow(dpy, c->win, *c->x, *c->y, *c->w, *c->h);
    1.35 +
    1.36  	e.type = ConfigureNotify;
    1.37  	e.event = c->win;
    1.38  	e.window = c->win;