From: Anselm R Garbe Date: Mon, 18 Aug 2008 08:49:44 +0000 (+0100) Subject: applied Martin Hurton's view() simplification, not checking arg X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=2dc7f42fd7fc8f1fc8d837265221654e8565eb6b;p=dwm.git applied Martin Hurton's view() simplification, not checking arg --- 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();