changeset 654:04734db9a219

allowing zoom within master area as well
author Anselm R. Garbe <arg@suckless.org>
date Fri, 05 Jan 2007 15:08:25 +0100 (2007-01-05)
parents 99bc71d78a95
children 4cf9ab28b36c
files view.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/view.c	Fri Jan 05 15:04:49 2007 +0100
+++ b/view.c	Fri Jan 05 15:08:25 2007 +0100
@@ -302,10 +302,11 @@
 	}
 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
 		n++;
+
+	c = sel;
 	if(n <= nmaster || (arrange == dofloat))
-		return;
-
-	if(ismaster((c = sel))) {
+		pop(c);
+	else if(ismaster(sel)) {
 		if(!(c = topofstack()))
 			return;
 		swap(c, sel);