Mercurial > aewl
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 wrap: on
line diff
--- a/client.c Wed Jul 19 13:52:31 2006 +0200 +++ b/client.c Wed Jul 19 14:11:27 2006 +0200 @@ -25,7 +25,11 @@ c->bw = *c->w + 2; c->bx = *c->x + *c->w - c->bw + 2; c->by = *c->y; - XMoveResizeWindow(dpy, c->title, c->bx, c->by, c->bw, c->bh); + if(c->tags[tsel]) + XMoveResizeWindow(dpy, c->title, c->bx, c->by, c->bw, c->bh); + else + XMoveResizeWindow(dpy, c->title, c->bx + 2 * sw, c->by, c->bw, c->bh); + } static int @@ -258,10 +262,8 @@ focus(c); } else { - ban(c); XMapRaised(dpy, c->win); XMapRaised(dpy, c->title); - XSync(dpy, False); } } @@ -319,9 +321,11 @@ *c->x = right - *c->w; if(sticky == BotLeft || sticky == BotRight) *c->y = bottom - *c->h; + resizetitle(c); XSetWindowBorderWidth(dpy, c->win, 1); XMoveResizeWindow(dpy, c->win, *c->x, *c->y, *c->w, *c->h); + e.type = ConfigureNotify; e.event = c->win; e.window = c->win;