about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-11-22 16:17:50 +0100
committerarg@mig29 <unknown>2006-11-22 16:17:50 +0100
commit321e8d51edb8fe433e8e2ce8d5463c6999cc0576 (patch)
tree9e81a8c26380624457292923992b1287710d4c13 /view.c
parent78f4b51757430dcbd807063794cd86f81fc686a5 (diff)
downloaddwm-321e8d51edb8fe433e8e2ce8d5463c6999cc0576.tar.gz
fififif
Diffstat (limited to 'view.c')
-rw-r--r--view.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/view.c b/view.c
index bd43da9..e7d7a99 100644
--- a/view.c
+++ b/view.c
@@ -6,42 +6,12 @@
 /* static */
 
 static Client *
-minclient(void) {
-	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;
-	return min;
-}
-
-static Client *
 nexttiled(Client *c) {
 	for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
 	return c;
 }
 
 static void
-reorder(void) {
-	Client *c, *newclients, *tail;
-
-	newclients = tail = NULL;
-	while((c = minclient())) {
-		detach(c);
-		if(tail) {
-			c->prev = tail;
-			tail->next = c;
-			tail = c;
-		}
-		else
-			tail = newclients = c;
-	}
-	clients = newclients;
-}
-
-static void
 togglemax(Client *c) {
 	XEvent ev;
 		
@@ -247,7 +217,6 @@ toggleview(Arg *arg) {
 	for(i = 0; i < ntags && !seltag[i]; i++);
 	if(i == ntags)
 		seltag[arg->i] = True; /* cannot toggle last view */
-	reorder();
 	arrange();
 }
 
@@ -258,7 +227,6 @@ view(Arg *arg) {
 	for(i = 0; i < ntags; i++)
 		seltag[i] = False;
 	seltag[arg->i] = True;
-	reorder();
 	arrange();
 }
 
@@ -268,7 +236,6 @@ viewall(Arg *arg) {
 
 	for(i = 0; i < ntags; i++)
 		seltag[i] = True;
-	reorder();
 	arrange();
 }
 
e='Blame the previous revision' href='/acidbong/suckless/dwm/blame/config.default.h?h=5.4.1&id=85e6d5995663a48d402b96bebf00b319cca5d322'>^
b515765 ^
292ccc4 ^
df74b26 ^


292ccc4 ^
df74b26 ^
3a1343a ^

8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^

bab575c ^
8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^
b515765 ^

d6a6eca ^
2dd5212 ^
b515765 ^

d6a6eca ^
e21d93b ^

b515765 ^
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