[hackers] [dwm] [PATCH] get rid of unnecessary ternary operator

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Thu, 27 Oct 2016 01:40:52 +0200

---
 dwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dwm.c b/dwm.c
index 3d6cc28..85ec75e 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -2020,7 +2020,7 @@ updatewmhints(Client *c)
 			wmh->flags &= ~XUrgencyHint;
 			XSetWMHints(dpy, c->win, wmh);
 		} else
-			c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0;
+			c->isurgent = !!(wmh->flags & XUrgencyHint);
 		if (wmh->flags & InputHint)
 			c->neverfocus = !wmh->input;
 		else
-- 
2.7.3
Received on Thu Oct 27 2016 - 01:40:52 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 27 2016 - 01:48:14 CEST