summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c2
-rw-r--r--view.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/client.c b/client.c
index 988d3ca..d04692d 100644
--- a/client.c
+++ b/client.c
@@ -233,7 +233,7 @@ manage(Window w, XWindowAttributes *wa) {
233 settags(c, getclient(trans)); 233 settags(c, getclient(trans));
234 if(!c->isfloat) 234 if(!c->isfloat)
235 c->isfloat = trans 235 c->isfloat = trans
236 || (c->maxw && c->minw && 236 || (c->maxw && c->minw && c->maxh && c->minh &&
237 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)
diff --git a/view.c b/view.c
index daf0711..facbb4c 100644
--- a/view.c
+++ b/view.c
@@ -44,6 +44,10 @@ reorder(void) {
44static void 44static void
45togglemax(Client *c) { 45togglemax(Client *c) {
46 XEvent ev; 46 XEvent ev;
47
48 if (x->maxw && x->minw && x->maxh && x->minh &&
49 x->maxw == x->minw && x->maxh == x->minh)
50 return;
47 51
48 if((c->ismax = !c->ismax)) { 52 if((c->ismax = !c->ismax)) {
49 c->rx = c->x; c->x = sx; 53 c->rx = c->x; c->x = sx;