diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-12 10:57:28 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-12 10:57:28 +0200 |
| commit | ca65478c8968434c78aacf4a102ccbbe4a66ad9e (patch) | |
| tree | a7b8e02be5fb457e1c3f0e646e212911048390b6 /view.c | |
| parent | some more simplifications of intro comment in dwm.h, this should suffice for ... (diff) | |
| download | dwm-ca65478c8968434c78aacf4a102ccbbe4a66ad9e.tar.gz dwm-ca65478c8968434c78aacf4a102ccbbe4a66ad9e.zip | |
removed a bunch of lines through making function signatures more consistent with my style ( { does not belong to a new line, if function args are single-lined)
Diffstat (limited to '')
| -rw-r--r-- | view.c | 48 |
1 files changed, 16 insertions, 32 deletions
| @@ -8,8 +8,7 @@ | |||
| 8 | /* static */ | 8 | /* static */ |
| 9 | 9 | ||
| 10 | static Client * | 10 | static Client * |
| 11 | minclient() | 11 | minclient() { |
| 12 | { | ||
| 13 | Client *c, *min; | 12 | Client *c, *min; |
| 14 | 13 | ||
| 15 | if((clients && clients->isfloat) || arrange == dofloat) | 14 | if((clients && clients->isfloat) || arrange == dofloat) |
| @@ -21,8 +20,7 @@ minclient() | |||
| 21 | } | 20 | } |
| 22 | 21 | ||
| 23 | static void | 22 | static void |
| 24 | reorder() | 23 | reorder() { |
| 25 | { | ||
| 26 | Client *c, *newclients, *tail; | 24 | Client *c, *newclients, *tail; |
| 27 | 25 | ||
| 28 | newclients = tail = NULL; | 26 | newclients = tail = NULL; |
| @@ -40,8 +38,7 @@ reorder() | |||
| 40 | } | 38 | } |
| 41 | 39 | ||
| 42 | static Client * | 40 | static Client * |
| 43 | nexttiled(Client *c) | 41 | nexttiled(Client *c) { |
| 44 | { | ||
| 45 | for(c = getnext(c); c && c->isfloat; c = getnext(c->next)); | 42 | for(c = getnext(c); c && c->isfloat; c = getnext(c->next)); |
| 46 | return c; | 43 | return c; |
| 47 | } | 44 | } |
| @@ -51,8 +48,7 @@ nexttiled(Client *c) | |||
| 51 | void (*arrange)(Arg *) = DEFMODE; | 48 | void (*arrange)(Arg *) = DEFMODE; |
| 52 | 49 | ||
| 53 | void | 50 | void |
| 54 | detach(Client *c) | 51 | detach(Client *c) { |
| 55 | { | ||
| 56 | if(c->prev) | 52 | if(c->prev) |
| 57 | c->prev->next = c->next; | 53 | c->prev->next = c->next; |
| 58 | if(c->next) | 54 | if(c->next) |
| @@ -63,8 +59,7 @@ detach(Client *c) | |||
| 63 | } | 59 | } |
| 64 | 60 | ||
| 65 | void | 61 | void |
| 66 | dofloat(Arg *arg) | 62 | dofloat(Arg *arg) { |
| 67 | { | ||
| 68 | Client *c; | 63 | Client *c; |
| 69 | 64 | ||
| 70 | maximized = False; | 65 | maximized = False; |
| @@ -84,8 +79,7 @@ dofloat(Arg *arg) | |||
| 84 | } | 79 | } |
| 85 | 80 | ||
| 86 | void | 81 | void |
| 87 | dotile(Arg *arg) | 82 | dotile(Arg *arg) { |
| 88 | { | ||
| 89 | int h, i, n, w; | 83 | int h, i, n, w; |
| 90 | Client *c; | 84 | Client *c; |
| 91 | 85 | ||
| @@ -148,8 +142,7 @@ dotile(Arg *arg) | |||
| 148 | } | 142 | } |
| 149 | 143 | ||
| 150 | void | 144 | void |
| 151 | focusnext(Arg *arg) | 145 | focusnext(Arg *arg) { |
| 152 | { | ||
| 153 | Client *c; | 146 | Client *c; |
| 154 | 147 | ||
| 155 | if(!sel) | 148 | if(!sel) |
| @@ -164,8 +157,7 @@ focusnext(Arg *arg) | |||
| 164 | } | 157 | } |
| 165 | 158 | ||
| 166 | void | 159 | void |
| 167 | focusprev(Arg *arg) | 160 | focusprev(Arg *arg) { |
| 168 | { | ||
| 169 | Client *c; | 161 | Client *c; |
| 170 | 162 | ||
| 171 | if(!sel) | 163 | if(!sel) |
| @@ -182,8 +174,7 @@ focusprev(Arg *arg) | |||
| 182 | } | 174 | } |
| 183 | 175 | ||
| 184 | Bool | 176 | Bool |
| 185 | isvisible(Client *c) | 177 | isvisible(Client *c) { |
| 186 | { | ||
| 187 | unsigned int i; | 178 | unsigned int i; |
| 188 | 179 | ||
| 189 | for(i = 0; i < ntags; i++) | 180 | for(i = 0; i < ntags; i++) |
| @@ -193,8 +184,7 @@ isvisible(Client *c) | |||
| 193 | } | 184 | } |
| 194 | 185 | ||
| 195 | void | 186 | void |
| 196 | resizecol(Arg *arg) | 187 | resizecol(Arg *arg) { |
| 197 | { | ||
| 198 | unsigned int n; | 188 | unsigned int n; |
| 199 | Client *c; | 189 | Client *c; |
| 200 | 190 | ||
| @@ -218,8 +208,7 @@ resizecol(Arg *arg) | |||
| 218 | } | 208 | } |
| 219 | 209 | ||
| 220 | void | 210 | void |
| 221 | restack() | 211 | restack() { |
| 222 | { | ||
| 223 | Client *c; | 212 | Client *c; |
| 224 | XEvent ev; | 213 | XEvent ev; |
| 225 | 214 | ||
| @@ -242,8 +231,7 @@ restack() | |||
| 242 | } | 231 | } |
| 243 | 232 | ||
| 244 | void | 233 | void |
| 245 | togglemode(Arg *arg) | 234 | togglemode(Arg *arg) { |
| 246 | { | ||
| 247 | arrange = (arrange == dofloat) ? dotile : dofloat; | 235 | arrange = (arrange == dofloat) ? dotile : dofloat; |
| 248 | if(sel) | 236 | if(sel) |
| 249 | arrange(NULL); | 237 | arrange(NULL); |
| @@ -252,8 +240,7 @@ togglemode(Arg *arg) | |||
| 252 | } | 240 | } |
| 253 | 241 | ||
| 254 | void | 242 | void |
| 255 | toggleview(Arg *arg) | 243 | toggleview(Arg *arg) { |
| 256 | { | ||
| 257 | unsigned int i; | 244 | unsigned int i; |
| 258 | 245 | ||
| 259 | seltag[arg->i] = !seltag[arg->i]; | 246 | seltag[arg->i] = !seltag[arg->i]; |
| @@ -265,8 +252,7 @@ toggleview(Arg *arg) | |||
| 265 | } | 252 | } |
| 266 | 253 | ||
| 267 | void | 254 | void |
| 268 | view(Arg *arg) | 255 | view(Arg *arg) { |
| 269 | { | ||
| 270 | unsigned int i; | 256 | unsigned int i; |
| 271 | 257 | ||
| 272 | for(i = 0; i < ntags; i++) | 258 | for(i = 0; i < ntags; i++) |
| @@ -277,8 +263,7 @@ view(Arg *arg) | |||
| 277 | } | 263 | } |
| 278 | 264 | ||
| 279 | void | 265 | void |
| 280 | viewall(Arg *arg) | 266 | viewall(Arg *arg) { |
| 281 | { | ||
| 282 | unsigned int i; | 267 | unsigned int i; |
| 283 | 268 | ||
| 284 | for(i = 0; i < ntags; i++) | 269 | for(i = 0; i < ntags; i++) |
| @@ -288,8 +273,7 @@ viewall(Arg *arg) | |||
| 288 | } | 273 | } |
| 289 | 274 | ||
| 290 | void | 275 | void |
| 291 | zoom(Arg *arg) | 276 | zoom(Arg *arg) { |
| 292 | { | ||
| 293 | unsigned int n; | 277 | unsigned int n; |
| 294 | Client *c; | 278 | Client *c; |
| 295 | 279 | ||
