summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-05 19:26:34 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-05 19:26:34 +0200
commit0d0e8bde134b999dd22c891d227d886ca6c9ba2c (patch)
tree8ec3962fd9f3a010acd6484ebb86012b1bd4d554 /view.c
parentfix (diff)
downloaddwm-0d0e8bde134b999dd22c891d227d886ca6c9ba2c.tar.gz
dwm-0d0e8bde134b999dd22c891d227d886ca6c9ba2c.zip
no, ordering floating clients at the end seems better
Diffstat (limited to '')
-rw-r--r--view.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/view.c b/view.c
index 561d4ef..8df93ef 100644
--- a/view.c
+++ b/view.c
@@ -82,8 +82,8 @@ dotile(Arg *arg)
82 maximized = False; 82 maximized = False;
83 83
84 w = sw - mw; 84 w = sw - mw;
85 for(n = 0, c = clients; c; c = c->next) 85 for(n = 0, c = clients; c && !c->isfloat; c = c->next)
86 if(isvisible(c) && !c->isfloat) 86 if(isvisible(c))
87 n++; 87 n++;
88 88
89 if(n > 1) 89 if(n > 1)
@@ -186,8 +186,8 @@ resizecol(Arg *arg)
186 unsigned int n; 186 unsigned int n;
187 Client *c; 187 Client *c;
188 188
189 for(n = 0, c = clients; c; c = c->next) 189 for(n = 0, c = clients; c && !c->isfloat; c = c->next)
190 if(isvisible(c) && !c->isfloat) 190 if(isvisible(c))
191 n++; 191 n++;
192 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) 192 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
193 return; 193 return;
@@ -311,22 +311,15 @@ zoom(Arg *arg)
311 unsigned int n; 311 unsigned int n;
312 Client *c; 312 Client *c;
313 313
314 for(n = 0, c = clients; c; c = c->next) 314 for(n = 0, c = clients; c && !c->isfloat; c = c->next)
315 if(isvisible(c) && !c->isfloat) 315 if(isvisible(c))
316 n++; 316 n++;
317 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) 317 if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
318 return; 318 return;
319 319
320 /* this is somewhat tricky, it asserts to only zoom tiled clients */ 320 if((c = sel) == getnext(clients))
321 for(c = getnext(clients); c && c->isfloat; c = getnext(c->next)); 321 if(!(c = getnext(c->next)) || c->isfloat)
322 if(c) { 322 return;
323 if(c == sel)
324 for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next));
325 else
326 c = sel;
327 }
328 if(!c)
329 return;
330 detach(c); 323 detach(c);
331 c->next = clients; 324 c->next = clients;
332 clients->prev = c; 325 clients->prev = c;