about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-08-18 09:49:44 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-08-18 09:49:44 +0100
commit2dc7f42fd7fc8f1fc8d837265221654e8565eb6b (patch)
treee67ec1b63848ffb117b4e29e09130000c7fefdf5
parent9f3a5cb7540df6628c9c8a8bd7a8667a73f08fb1 (diff)
downloaddwm-2dc7f42fd7fc8f1fc8d837265221654e8565eb6b.tar.gz
applied Martin Hurton's view() simplification, not checking arg
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 7d99390..c31343c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1640,10 +1640,10 @@ updatewmhints(Client *c) {
 
 void
 view(const Arg *arg) {
-	if(arg && (arg->ui & TAGMASK) == tagset[seltags])
+	if((arg->ui & TAGMASK) == tagset[seltags])
 		return;
 	seltags ^= 1; /* toggle sel tagset */
-	if(arg && (arg->ui & TAGMASK))
+	if(arg->ui & TAGMASK)
 		tagset[seltags] = arg->ui & TAGMASK;
 	clearurgent();
 	arrange();
id='n136' href='#n136'>136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198