diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 17:18:24 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-19 17:18:24 +0100 |
| commit | 5a03daf47f3383250652c15f38f976f6157b4641 (patch) | |
| tree | 3fa10743e82f60e66a0407056a4793101e917a74 /screen.c | |
| parent | renames swim[ming] into versatile (diff) | |
| download | dwm-5a03daf47f3383250652c15f38f976f6157b4641.tar.gz dwm-5a03daf47f3383250652c15f38f976f6157b4641.zip | |
renamed Client->versatile and Rule->versatile into Client->isversatile resp. Rule->isversatile
Diffstat (limited to 'screen.c')
| -rw-r--r-- | screen.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -19,7 +19,7 @@ Layout *lt = NULL; | |||
| 19 | typedef struct { | 19 | typedef struct { |
| 20 | const char *prop; | 20 | const char *prop; |
| 21 | const char *tags; | 21 | const char *tags; |
| 22 | Bool versatile; | 22 | Bool isversatile; |
| 23 | } Rule; | 23 | } Rule; |
| 24 | 24 | ||
| 25 | typedef struct { | 25 | typedef struct { |
| @@ -52,7 +52,7 @@ tile(void) { | |||
| 52 | if(c->isbanned) | 52 | if(c->isbanned) |
| 53 | XMoveWindow(dpy, c->win, c->x, c->y); | 53 | XMoveWindow(dpy, c->win, c->x, c->y); |
| 54 | c->isbanned = False; | 54 | c->isbanned = False; |
| 55 | if(c->versatile) | 55 | if(c->isversatile) |
| 56 | continue; | 56 | continue; |
| 57 | c->ismax = False; | 57 | c->ismax = False; |
| 58 | nx = wax; | 58 | nx = wax; |
| @@ -175,10 +175,10 @@ restack(void) { | |||
| 175 | drawstatus(); | 175 | drawstatus(); |
| 176 | if(!sel) | 176 | if(!sel) |
| 177 | return; | 177 | return; |
| 178 | if(sel->versatile || lt->arrange == versatile) | 178 | if(sel->isversatile || lt->arrange == versatile) |
| 179 | XRaiseWindow(dpy, sel->win); | 179 | XRaiseWindow(dpy, sel->win); |
| 180 | if(lt->arrange != versatile) { | 180 | if(lt->arrange != versatile) { |
| 181 | if(!sel->versatile) | 181 | if(!sel->isversatile) |
| 182 | XLowerWindow(dpy, sel->win); | 182 | XLowerWindow(dpy, sel->win); |
| 183 | for(c = nexttiled(clients); c; c = nexttiled(c->next)) { | 183 | for(c = nexttiled(clients); c; c = nexttiled(c->next)) { |
| 184 | if(c == sel) | 184 | if(c == sel) |
| @@ -208,7 +208,7 @@ settags(Client *c, Client *trans) { | |||
| 208 | ch.res_name ? ch.res_name : "", c->name); | 208 | ch.res_name ? ch.res_name : "", c->name); |
| 209 | for(i = 0; i < nrules; i++) | 209 | for(i = 0; i < nrules; i++) |
| 210 | if(regs[i].propregex && !regexec(regs[i].propregex, prop, 1, &tmp, 0)) { | 210 | if(regs[i].propregex && !regexec(regs[i].propregex, prop, 1, &tmp, 0)) { |
| 211 | c->versatile = rule[i].versatile; | 211 | c->isversatile = rule[i].isversatile; |
| 212 | for(j = 0; regs[i].tagregex && j < ntags; j++) { | 212 | for(j = 0; regs[i].tagregex && j < ntags; j++) { |
| 213 | if(!regexec(regs[i].tagregex, tags[j], 1, &tmp, 0)) { | 213 | if(!regexec(regs[i].tagregex, tags[j], 1, &tmp, 0)) { |
| 214 | matched = True; | 214 | matched = True; |
| @@ -271,7 +271,7 @@ void | |||
| 271 | toggleversatile(Arg *arg) { | 271 | toggleversatile(Arg *arg) { |
| 272 | if(!sel || lt->arrange == versatile) | 272 | if(!sel || lt->arrange == versatile) |
| 273 | return; | 273 | return; |
| 274 | sel->versatile = !sel->versatile; | 274 | sel->isversatile = !sel->isversatile; |
| 275 | lt->arrange(); | 275 | lt->arrange(); |
| 276 | } | 276 | } |
| 277 | 277 | ||
