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();
 }
 
>212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294