comparison screen.c @ 74:5370ef170cc9

sanitized names
author Anselm R. Garbe <garbeam@wmii.de>
date Fri, 14 Jul 2006 22:54:09 +0200
parents c2ddb9dbbd10
children
comparison
equal deleted inserted replaced
73:c2ddb9dbbd10 74:5370ef170cc9
13 Client *c; 13 Client *c;
14 14
15 tsel = arg->i; 15 tsel = arg->i;
16 arrange(NULL); 16 arrange(NULL);
17 17
18 for(c = clients; c; c = next(c->next)) 18 for(c = clients; c; c = getnext(c->next))
19 draw_client(c); 19 drawtitle(c);
20 draw_bar(); 20 drawstatus();
21 } 21 }
22 22
23 void 23 void
24 floating(Arg *arg) 24 floating(Arg *arg)
25 { 25 {
28 arrange = floating; 28 arrange = floating;
29 for(c = clients; c; c = c->next) { 29 for(c = clients; c; c = c->next) {
30 if(c->tags[tsel]) 30 if(c->tags[tsel])
31 resize(c, True); 31 resize(c, True);
32 else 32 else
33 ban_client(c); 33 ban(c);
34 } 34 }
35 if(sel && !sel->tags[tsel]) { 35 if(sel && !sel->tags[tsel]) {
36 if((sel = next(clients))) { 36 if((sel = getnext(clients))) {
37 craise(sel); 37 higher(sel);
38 focus(sel); 38 focus(sel);
39 } 39 }
40 } 40 }
41 draw_bar(); 41 drawstatus();
42 } 42 }
43 43
44 void 44 void
45 tiling(Arg *arg) 45 tiling(Arg *arg)
46 { 46 {
59 h = sh - bh; 59 h = sh - bh;
60 60
61 for(i = 0, c = clients; c; c = c->next) { 61 for(i = 0, c = clients; c; c = c->next) {
62 if(c->tags[tsel]) { 62 if(c->tags[tsel]) {
63 if(c->floating) { 63 if(c->floating) {
64 craise(c); 64 higher(c);
65 resize(c, True); 65 resize(c, True);
66 continue; 66 continue;
67 } 67 }
68 if(n == 1) { 68 if(n == 1) {
69 c->x = sx; 69 c->x = sx;
85 } 85 }
86 resize(c, False); 86 resize(c, False);
87 i++; 87 i++;
88 } 88 }
89 else 89 else
90 ban_client(c); 90 ban(c);
91 } 91 }
92 if(!sel || (sel && !sel->tags[tsel])) { 92 if(!sel || (sel && !sel->tags[tsel])) {
93 if((sel = next(clients))) { 93 if((sel = getnext(clients))) {
94 craise(sel); 94 higher(sel);
95 focus(sel); 95 focus(sel);
96 } 96 }
97 } 97 }
98 draw_bar(); 98 drawstatus();
99 } 99 }
100 100