equal
deleted
inserted
replaced
16 } |
16 } |
17 |
17 |
18 static void |
18 static void |
19 detachstack(Client *c) { |
19 detachstack(Client *c) { |
20 Client **tc; |
20 Client **tc; |
|
21 |
21 for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext); |
22 for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext); |
22 *tc = c->snext; |
23 *tc = c->snext; |
23 } |
24 } |
24 |
25 |
25 static void |
26 static void |
75 } |
76 } |
76 |
77 |
77 static void |
78 static void |
78 setclientstate(Client *c, long state) { |
79 setclientstate(Client *c, long state) { |
79 long data[] = {state, None}; |
80 long data[] = {state, None}; |
|
81 |
80 XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32, |
82 XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32, |
81 PropModeReplace, (unsigned char *)data, 2); |
83 PropModeReplace, (unsigned char *)data, 2); |
82 } |
84 } |
83 |
85 |
84 static void |
86 static void |
442 togglemax(sel); |
444 togglemax(sel); |
443 return; |
445 return; |
444 } |
446 } |
445 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
447 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
446 n++; |
448 n++; |
447 |
|
448 if((c = sel) == nexttiled(clients)) |
449 if((c = sel) == nexttiled(clients)) |
449 if(!(c = nexttiled(c->next))) |
450 if(!(c = nexttiled(c->next))) |
450 return; |
451 return; |
451 detach(c); |
452 detach(c); |
452 attach(c); |
453 attach(c); |