summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c4
-rw-r--r--event.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/client.c b/client.c
index 0409671..220d2a0 100644
--- a/client.c
+++ b/client.c
@@ -209,8 +209,6 @@ 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);
214 if(c->x + c->w + 2 * BORDERPX > sw) 212 if(c->x + c->w + 2 * BORDERPX > sw)
215 c->x = sw - c->w - 2 * BORDERPX; 213 c->x = sw - c->w - 2 * BORDERPX;
216 if(c->x < sx) 214 if(c->x < sx)
@@ -341,6 +339,8 @@ updatesize(Client *c) {
341 } 339 }
342 else 340 else
343 c->minw = c->minh = 0; 341 c->minw = c->minh = 0;
342 c->isfixed = (c->maxw && c->minw && c->maxh && c->minh &&
343 c->maxw == c->minw && c->maxh == c->minh);
344 if(c->flags & PWinGravity) 344 if(c->flags & PWinGravity)
345 c->grav = size.win_gravity; 345 c->grav = size.win_gravity;
346 else 346 else
diff --git a/event.c b/event.c
index 0e98f0f..bf88819 100644
--- a/event.c
+++ b/event.c
@@ -136,7 +136,8 @@ buttonpress(XEvent *e) {
136 } 136 }
137 else if(ev->button == Button2) 137 else if(ev->button == Button2)
138 zoom(NULL); 138 zoom(NULL);
139 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat) && !c->isfixed) { 139 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat) &&
140 !c->isfixed) {
140 restack(); 141 restack();
141 resizemouse(c); 142 resizemouse(c);
142 } 143 }