aboutsummaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-22 07:59:13 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-22 07:59:13 +0100
commit352cae4380713949d3800ebcda7aff3bb5ab9efc (patch)
treedd301143a6777dacb09b90d6d27d16aeb19056fc /tag.c
parentb3b58c08e4e15c4dbdd04bae52300d1e8effed33 (diff)
downloaddwm-352cae4380713949d3800ebcda7aff3bb5ab9efc.tar.zst
several changes, made togglemax extern and separated it from zoom() - moved zoom() and togglemax() into layout.c, changed void (*func)(Arg *) into void (*func)(Arg), changed default keybindings of focusnext/focusprev and incmasterw to h/j/k/l accordingly, made keys in config*h appear alphabetically (special keys first), renamed resizemaster into incmasterw, renamed MASTER into MASTERWIDTH
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/tag.c b/tag.c
index c069dcc..d946309 100644
--- a/tag.c
+++ b/tag.c
@@ -102,49 +102,49 @@ settags(Client *c, Client *trans) {
}
void
-tag(Arg *arg) {
+tag(Arg arg) {
unsigned int i;
if(!sel)
return;
for(i = 0; i < ntags; i++)
- sel->tags[i] = (arg->i == -1) ? True : False;
- if(arg->i >= 0 && arg->i < ntags)
- sel->tags[arg->i] = True;
+ sel->tags[i] = (arg.i == -1) ? True : False;
+ if(arg.i >= 0 && arg.i < ntags)
+ sel->tags[arg.i] = True;
lt->arrange();
}
void
-toggletag(Arg *arg) {
+toggletag(Arg arg) {
unsigned int i;
if(!sel)
return;
- sel->tags[arg->i] = !sel->tags[arg->i];
+ sel->tags[arg.i] = !sel->tags[arg.i];
for(i = 0; i < ntags && !sel->tags[i]; i++);
if(i == ntags)
- sel->tags[arg->i] = True;
+ sel->tags[arg.i] = True;
lt->arrange();
}
void
-toggleview(Arg *arg) {
+toggleview(Arg arg) {
unsigned int i;
- seltag[arg->i] = !seltag[arg->i];
+ seltag[arg.i] = !seltag[arg.i];
for(i = 0; i < ntags && !seltag[i]; i++);
if(i == ntags)
- seltag[arg->i] = True; /* cannot toggle last view */
+ seltag[arg.i] = True; /* cannot toggle last view */
lt->arrange();
}
void
-view(Arg *arg) {
+view(Arg arg) {
unsigned int i;
for(i = 0; i < ntags; i++)
- seltag[i] = (arg->i == -1) ? True : False;
- if(arg->i >= 0 && arg->i < ntags)
- seltag[arg->i] = True;
+ seltag[i] = (arg.i == -1) ? True : False;
+ if(arg.i >= 0 && arg.i < ntags)
+ seltag[arg.i] = True;
lt->arrange();
}