equal
deleted
inserted
replaced
22 c->tw += textw(c->name); |
22 c->tw += textw(c->name); |
23 if(c->tw > c->w) |
23 if(c->tw > c->w) |
24 c->tw = c->w + 2; |
24 c->tw = c->w + 2; |
25 c->tx = c->x + c->w - c->tw + 2; |
25 c->tx = c->x + c->w - c->tw + 2; |
26 c->ty = c->y; |
26 c->ty = c->y; |
27 if(c->tags[tsel]) |
27 if(isvisible(c)) |
28 XMoveResizeWindow(dpy, c->title, c->tx, c->ty, c->tw, c->th); |
28 XMoveResizeWindow(dpy, c->title, c->tx, c->ty, c->tw, c->th); |
29 else |
29 else |
30 XMoveResizeWindow(dpy, c->title, c->tx + 2 * sw, c->ty, c->tw, c->th); |
30 XMoveResizeWindow(dpy, c->title, c->tx + 2 * sw, c->ty, c->tw, c->th); |
31 |
31 |
32 } |
32 } |
274 arrange(NULL); |
274 arrange(NULL); |
275 |
275 |
276 /* mapping the window now prevents flicker */ |
276 /* mapping the window now prevents flicker */ |
277 XMapRaised(dpy, c->win); |
277 XMapRaised(dpy, c->win); |
278 XMapRaised(dpy, c->title); |
278 XMapRaised(dpy, c->title); |
279 if(c->tags[tsel]) |
279 if(isvisible(c)) |
280 focus(c); |
280 focus(c); |
281 } |
281 } |
282 |
282 |
283 void |
283 void |
284 resize(Client *c, Bool sizehints, Corner sticky) |
284 resize(Client *c, Bool sizehints, Corner sticky) |