equal
deleted
inserted
replaced
31 static unsigned int len = 0; |
31 static unsigned int len = 0; |
32 |
32 |
33 /* extern */ |
33 /* extern */ |
34 |
34 |
35 Client * |
35 Client * |
36 getnext(Client *c) |
36 getnext(Client *c) { |
37 { |
|
38 for(; c && !isvisible(c); c = c->next); |
37 for(; c && !isvisible(c); c = c->next); |
39 return c; |
38 return c; |
40 } |
39 } |
41 |
40 |
42 Client * |
41 Client * |
43 getprev(Client *c) |
42 getprev(Client *c) { |
44 { |
|
45 for(; c && !isvisible(c); c = c->prev); |
43 for(; c && !isvisible(c); c = c->prev); |
46 return c; |
44 return c; |
47 } |
45 } |
48 |
46 |
49 void |
47 void |
50 initrregs() |
48 initrregs() { |
51 { |
|
52 unsigned int i; |
49 unsigned int i; |
53 regex_t *reg; |
50 regex_t *reg; |
54 |
51 |
55 if(rreg) |
52 if(rreg) |
56 return; |
53 return; |
74 } |
71 } |
75 } |
72 } |
76 } |
73 } |
77 |
74 |
78 void |
75 void |
79 settags(Client *c, Client *trans) |
76 settags(Client *c, Client *trans) { |
80 { |
|
81 char prop[512]; |
77 char prop[512]; |
82 unsigned int i, j; |
78 unsigned int i, j; |
83 regmatch_t tmp; |
79 regmatch_t tmp; |
84 Bool matched = trans != NULL; |
80 Bool matched = trans != NULL; |
85 XClassHint ch; |
81 XClassHint ch; |
112 c->tags[i] = seltag[i]; |
108 c->tags[i] = seltag[i]; |
113 for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); |
109 for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); |
114 } |
110 } |
115 |
111 |
116 void |
112 void |
117 tag(Arg *arg) |
113 tag(Arg *arg) { |
118 { |
|
119 unsigned int i; |
114 unsigned int i; |
120 |
115 |
121 if(!sel) |
116 if(!sel) |
122 return; |
117 return; |
123 |
118 |
127 sel->weight = arg->i; |
122 sel->weight = arg->i; |
128 arrange(NULL); |
123 arrange(NULL); |
129 } |
124 } |
130 |
125 |
131 void |
126 void |
132 toggletag(Arg *arg) |
127 toggletag(Arg *arg) { |
133 { |
|
134 unsigned int i; |
128 unsigned int i; |
135 |
129 |
136 if(!sel) |
130 if(!sel) |
137 return; |
131 return; |
138 |
132 |