comparison view.c @ 487:be4f90c03582

applied Jukkas patch
author arg@mmvi
date Mon, 25 Sep 2006 08:21:51 +0200
parents 8d564b9e3cd4
children 0d2559f46b9e
comparison
equal deleted inserted replaced
486:8d564b9e3cd4 487:be4f90c03582
5 #include "dwm.h" 5 #include "dwm.h"
6 6
7 /* static */ 7 /* static */
8 8
9 static Client * 9 static Client *
10 minclient() { 10 minclient(void) {
11 Client *c, *min; 11 Client *c, *min;
12 12
13 if((clients && clients->isfloat) || arrange == dofloat) 13 if((clients && clients->isfloat) || arrange == dofloat)
14 return clients; /* don't touch floating order */ 14 return clients; /* don't touch floating order */
15 for(min = c = clients; c; c = c->next) 15 for(min = c = clients; c; c = c->next)
23 for(c = getnext(c); c && c->isfloat; c = getnext(c->next)); 23 for(c = getnext(c); c && c->isfloat; c = getnext(c->next));
24 return c; 24 return c;
25 } 25 }
26 26
27 static void 27 static void
28 reorder() { 28 reorder(void) {
29 Client *c, *newclients, *tail; 29 Client *c, *newclients, *tail;
30 30
31 newclients = tail = NULL; 31 newclients = tail = NULL;
32 while((c = minclient())) { 32 while((c = minclient())) {
33 detach(c); 33 detach(c);
223 } 223 }
224 arrange(NULL); 224 arrange(NULL);
225 } 225 }
226 226
227 void 227 void
228 restack() { 228 restack(void) {
229 Client *c; 229 Client *c;
230 XEvent ev; 230 XEvent ev;
231 231
232 if(!sel) { 232 if(!sel) {
233 drawstatus(); 233 drawstatus();