summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-12 10:57:28 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-12 10:57:28 +0200
commitca65478c8968434c78aacf4a102ccbbe4a66ad9e (patch)
treea7b8e02be5fb457e1c3f0e646e212911048390b6 /view.c
parentsome more simplifications of intro comment in dwm.h, this should suffice for ... (diff)
downloaddwm-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 'view.c')
-rw-r--r--view.c48
1 files changed, 16 insertions, 32 deletions
diff --git a/view.c b/view.c
index 3e78661..1226f0d 100644
--- a/view.c
+++ b/view.c
@@ -8,8 +8,7 @@
8/* static */ 8/* static */
9 9
10static Client * 10static Client *
11minclient() 11minclient() {
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
23static void 22static void
24reorder() 23reorder() {
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
42static Client * 40static Client *
43nexttiled(Client *c) 41nexttiled(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)
51void (*arrange)(Arg *) = DEFMODE; 48void (*arrange)(Arg *) = DEFMODE;
52 49
53void 50void
54detach(Client *c) 51detach(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
65void 61void
66dofloat(Arg *arg) 62dofloat(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
86void 81void
87dotile(Arg *arg) 82dotile(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
150void 144void
151focusnext(Arg *arg) 145focusnext(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
166void 159void
167focusprev(Arg *arg) 160focusprev(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
184Bool 176Bool
185isvisible(Client *c) 177isvisible(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
195void 186void
196resizecol(Arg *arg) 187resizecol(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
220void 210void
221restack() 211restack() {
222{
223 Client *c; 212 Client *c;
224 XEvent ev; 213 XEvent ev;
225 214
@@ -242,8 +231,7 @@ restack()
242} 231}
243 232
244void 233void
245togglemode(Arg *arg) 234togglemode(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
254void 242void
255toggleview(Arg *arg) 243toggleview(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
267void 254void
268view(Arg *arg) 255view(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
279void 265void
280viewall(Arg *arg) 266viewall(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
290void 275void
291zoom(Arg *arg) 276zoom(Arg *arg) {
292{
293 unsigned int n; 277 unsigned int n;
294 Client *c; 278 Client *c;
295 279