diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 16:07:22 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 16:07:22 +0100 |
| commit | b2f895166af45b5d84abab90032bd3cc75391dc8 (patch) | |
| tree | 80ab0848103467f535c8e4740cc5f08123829915 | |
| parent | forgot an extern declaration (diff) | |
| download | dwm-b2f895166af45b5d84abab90032bd3cc75391dc8.tar.gz dwm-b2f895166af45b5d84abab90032bd3cc75391dc8.zip | |
some more code polishing
Diffstat (limited to '')
| -rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -18,6 +18,7 @@ attachstack(Client *c) { | |||
| 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 | } |
| @@ -77,6 +78,7 @@ isprotodel(Client *c) { | |||
| 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 | } |
| @@ -444,7 +446,6 @@ zoom(Arg *arg) { | |||
| 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; |
