summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c
index d04692d..0409671 100644
--- a/client.c
+++ b/client.c
@@ -209,6 +209,8 @@ manage(Window w, XWindowAttributes *wa) {
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)
@@ -232,9 +234,7 @@ manage(Window w, XWindowAttributes *wa) {
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;