summaryrefslogtreecommitdiffstats
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
parentjust ignore the FD_ISSET check in main.c of xfd, just call XPending (which do... (diff)
downloaddwm-352cae4380713949d3800ebcda7aff3bb5ab9efc.tar.gz
dwm-352cae4380713949d3800ebcda7aff3bb5ab9efc.zip
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 '')
-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) {
102} 102}
103 103
104void 104void
105tag(Arg *arg) { 105tag(Arg arg) {
106 unsigned int i; 106 unsigned int i;
107 107
108 if(!sel) 108 if(!sel)
109 return; 109 return;
110 for(i = 0; i < ntags; i++) 110 for(i = 0; i < ntags; i++)
111 sel->tags[i] = (arg->i == -1) ? True : False; 111 sel->tags[i] = (arg.i == -1) ? True : False;
112 if(arg->i >= 0 && arg->i < ntags) 112 if(arg.i >= 0 && arg.i < ntags)
113 sel->tags[arg->i] = True; 113 sel->tags[arg.i] = True;
114 lt->arrange(); 114 lt->arrange();
115} 115}
116 116
117void 117void
118toggletag(Arg *arg) { 118toggletag(Arg arg) {
119 unsigned int i; 119 unsigned int i;
120 120
121 if(!sel) 121 if(!sel)
122 return; 122 return;
123 sel->tags[arg->i] = !sel->tags[arg->i]; 123 sel->tags[arg.i] = !sel->tags[arg.i];
124 for(i = 0; i < ntags && !sel->tags[i]; i++); 124 for(i = 0; i < ntags && !sel->tags[i]; i++);
125 if(i == ntags) 125 if(i == ntags)
126 sel->tags[arg->i] = True; 126 sel->tags[arg.i] = True;
127 lt->arrange(); 127 lt->arrange();
128} 128}
129 129
130void 130void
131toggleview(Arg *arg) { 131toggleview(Arg arg) {
132 unsigned int i; 132 unsigned int i;
133 133
134 seltag[arg->i] = !seltag[arg->i]; 134 seltag[arg.i] = !seltag[arg.i];
135 for(i = 0; i < ntags && !seltag[i]; i++); 135 for(i = 0; i < ntags && !seltag[i]; i++);
136 if(i == ntags) 136 if(i == ntags)
137 seltag[arg->i] = True; /* cannot toggle last view */ 137 seltag[arg.i] = True; /* cannot toggle last view */
138 lt->arrange(); 138 lt->arrange();
139} 139}
140 140
141void 141void
142view(Arg *arg) { 142view(Arg arg) {
143 unsigned int i; 143 unsigned int i;
144 144
145 for(i = 0; i < ntags; i++) 145 for(i = 0; i < ntags; i++)
146 seltag[i] = (arg->i == -1) ? True : False; 146 seltag[i] = (arg.i == -1) ? True : False;
147 if(arg->i >= 0 && arg->i < ntags) 147 if(arg.i >= 0 && arg.i < ntags)
148 seltag[arg->i] = True; 148 seltag[arg.i] = True;
149 lt->arrange(); 149 lt->arrange();
150} 150}