about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/view.c b/view.c
index c005a33..d61d0de 100644
--- a/view.c
+++ b/view.c
@@ -317,9 +317,10 @@ zoom(Arg *arg)
 	if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
 		return;
 
-	if((c = sel)  == getnext(clients))
-		if(!(c = getnext(c->next)))
-			return;
+	if((c = sel) == getnext(clients))
+		for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
+	if(!c)
+		return;
 	detach(c);
 	c->next = clients;
 	clients->prev = c;
README.md, update license (MIT -2019)' href='/akspecs/aerc/commit/README.md?h=0.4.0&id=501c95d852971775d64b97872fe63ecea367c525'>501c95d ^
7880bd9 ^
9c10a90 ^
ba41b98 ^
77d54fe ^
9c10a90 ^
7880bd9 ^

fc719e4 ^

0016775 ^





fc719e4 ^


a6012f2 ^
84e9853 ^
a6012f2 ^

501c95d ^
0b14d92 ^



ee61c28 ^
501c95d ^
ee61c28 ^




b18e339 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46