From 352cae4380713949d3800ebcda7aff3bb5ab9efc Mon Sep 17 00:00:00 2001 From: Anselm R. Garbe Date: Thu, 22 Feb 2007 07:59:13 +0100 Subject: 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 --- tag.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'tag.c') 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(); } -- cgit v1.2.3