equal
deleted
inserted
replaced
207 c->y = c->ty = wa->y; |
207 c->y = c->ty = wa->y; |
208 c->w = c->tw = wa->width; |
208 c->w = c->tw = wa->width; |
209 c->h = wa->height; |
209 c->h = wa->height; |
210 c->th = bh; |
210 c->th = bh; |
211 updatesize(c); |
211 updatesize(c); |
|
212 c->isfixed = (c->maxw && c->minw && c->maxh && c->minh && |
|
213 c->maxw == c->minw && c->maxh == c->minh); |
212 if(c->x + c->w + 2 * BORDERPX > sw) |
214 if(c->x + c->w + 2 * BORDERPX > sw) |
213 c->x = sw - c->w - 2 * BORDERPX; |
215 c->x = sw - c->w - 2 * BORDERPX; |
214 if(c->x < sx) |
216 if(c->x < sx) |
215 c->x = sx; |
217 c->x = sx; |
216 if(c->y + c->h + 2 * BORDERPX > sh) |
218 if(c->y + c->h + 2 * BORDERPX > sh) |
230 CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa); |
232 CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa); |
231 grabbuttons(c, False); |
233 grabbuttons(c, False); |
232 updatetitle(c); |
234 updatetitle(c); |
233 settags(c, getclient(trans)); |
235 settags(c, getclient(trans)); |
234 if(!c->isfloat) |
236 if(!c->isfloat) |
235 c->isfloat = trans |
237 c->isfloat = trans || c->isfixed; |
236 || (c->maxw && c->minw && c->maxh && c->minh && |
|
237 c->maxw == c->minw && c->maxh == c->minh); |
|
238 resizetitle(c); |
238 resizetitle(c); |
239 if(clients) |
239 if(clients) |
240 clients->prev = c; |
240 clients->prev = c; |
241 c->next = clients; |
241 c->next = clients; |
242 c->snext = stack; |
242 c->snext = stack; |