summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client.c2
-rw-r--r--event.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/client.c b/client.c
index 5d34c07..8ec8ffb 100644
--- a/client.c
+++ b/client.c
@@ -461,7 +461,7 @@ zoom(Arg *arg)
461{ 461{
462 Client *c; 462 Client *c;
463 463
464 if(!sel || (arrange != dotile) || sel->isfloat) 464 if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax)
465 return; 465 return;
466 466
467 if(sel == getnext(clients)) { 467 if(sel == getnext(clients)) {
diff --git a/event.c b/event.c
index 25ed6fa..650967e 100644
--- a/event.c
+++ b/event.c
@@ -132,8 +132,7 @@ buttonpress(XEvent *e)
132 movemouse(c); 132 movemouse(c);
133 break; 133 break;
134 case Button2: 134 case Button2:
135 if(!c->ismax && arrange != dofloat && !c->isfloat) 135 zoom(NULL);
136 zoom(NULL);
137 break; 136 break;
138 case Button3: 137 case Button3:
139 if(!c->ismax && (arrange == dofloat || c->isfloat)) 138 if(!c->ismax && (arrange == dofloat || c->isfloat))