tapplied Martin Hurton's view() simplification, not checking arg - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2dc7f42fd7fc8f1fc8d837265221654e8565eb6b
(DIR) parent 9f3a5cb7540df6628c9c8a8bd7a8667a73f08fb1
(HTM) Author: Anselm R Garbe <garbeam@gmail.com>
Date: Mon, 18 Aug 2008 09:49:44 +0100
applied Martin Hurton's view() simplification, not checking arg
Diffstat:
M dwm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/dwm.c b/dwm.c
t@@ -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();