about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--view.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/view.c b/view.c
index eddf2da..9ee4c78 100644
--- a/view.c
+++ b/view.c
@@ -12,6 +12,8 @@ minclient()
 {
 	Client *c, *min;
 
+	if((clients && clients->isfloat) || arrange == dofloat)
+		return clients; /* don't touch floating order */
 	for(min = c = clients; c; c = c->next)
 		if(c->weight < min->weight)
 			min = c;
@@ -19,16 +21,6 @@ minclient()
 }
 
 static void
-pop(Client *c)
-{
-	detach(c);
-	if(clients)
-		clients->prev = c;
-	c->next = clients;
-	clients = c;
-}
-
-static void
 reorder()
 {
 	Client *c, *newclients, *tail;
@@ -232,7 +224,6 @@ restack()
 		return;
 	}
 	if(sel->isfloat || arrange == dofloat) {
-		pop(sel);
 		XRaiseWindow(dpy, sel->win);
 		XRaiseWindow(dpy, sel->twin);
 	}
@@ -307,7 +298,11 @@ zoom(Arg *arg)
 	if((c = sel) == nexttiled(clients))
 		if(!(c = nexttiled(c->next)))
 			return;
-	pop(c);
+	detach(c);
+	if(clients)
+		clients->prev = c;
+	c->next = clients;
+	clients = c;
 	focus(c);
 	arrange(NULL);
 }
662@gmail.com> 2023-06-26 21:51:09 +0200 committer bptato <nincsnevem662@gmail.com> 2023-06-26 21:51:09 +0200 import todo list' href='/ahoang/chawan/commit/todo?id=719ee428aeac1d25f85f4b75812354a23acb768d'>719ee428 ^
5a8c69a3 ^






c7b46f6f ^


719ee428 ^
719ee428 ^




8df9ef9c ^
8df9ef9c ^

719ee428 ^
9c362c0d ^
719ee428 ^
719ee428 ^
8df9ef9c ^
719ee428 ^

8df9ef9c ^



719ee428 ^
719ee428 ^
719ee428 ^
719ee428 ^
719ee428 ^

8df9ef9c ^
e961b086 ^
01603dce ^
4511c956 ^
719ee428 ^
3de0cccc ^


e696b8b1 ^

372f936f ^

b028afab ^
30792beb ^

b028afab ^
719ee428 ^
8df9ef9c ^
4511c956 ^
372f936f ^
719ee428 ^
9f644c7a ^
91707a9b ^
fe9ac5f7 ^
8df9ef9c ^
9ee1dd6e ^
cc9ac4d1 ^
cc9ac4d1 ^
719ee428 ^
2d414c2b ^
719ee428 ^
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83