Commit 2dc7f42

Anselm R Garbe <garbeam@gmail.com>
2008-08-18 04:49:44
applied Martin Hurton's view() simplification, not checking arg
1 parent 9f3a5cb
Changed files (1)
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();