Explorar o código

applied Sanders zoom_update patch

Anselm R.Garbe %!s(int64=19) %!d(string=hai) anos
pai
achega
9fce8215b7
Modificáronse 2 ficheiros con 2 adicións e 3 borrados
  1. 1 1
      client.c
  2. 1 2
      event.c

+ 1 - 1
client.c

@@ -461,7 +461,7 @@ zoom(Arg *arg)
 {
 	Client *c;
 
-	if(!sel || (arrange != dotile) || sel->isfloat)
+	if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax)
 		return;
 
 	if(sel == getnext(clients))  {

+ 1 - 2
event.c

@@ -132,8 +132,7 @@ buttonpress(XEvent *e)
 				movemouse(c);
 			break;
 		case Button2:
-			if(!c->ismax && arrange != dofloat && !c->isfloat)
-				zoom(NULL);
+			zoom(NULL);
 			break;
 		case Button3:
 			if(!c->ismax && (arrange == dofloat || c->isfloat))