[hackers] [st] Use MODBIT in xseturgency. || noname

From: <git_AT_suckless.org>
Date: Mon, 28 Apr 2014 18:45:02 +0200

commit a48f2be7f537cb1655c6b550d9346a17459a94bd
Author: noname <noname_AT_inventati.org>
Date: Sun Apr 27 15:39:39 2014 +0400

    Use MODBIT in xseturgency.

diff --git a/st.c b/st.c
index fb206a3..d5a8257 100644
--- a/st.c
+++ b/st.c
_AT_@ -3570,7 +3570,7 @@ void
 xseturgency(int add) {
         XWMHints *h = XGetWMHints(xw.dpy, xw.win);
 
- h->flags = add ? (h->flags | XUrgencyHint) : (h->flags & ~XUrgencyHint);
+ MODBIT(h->flags, add, XUrgencyHint);
         XSetWMHints(xw.dpy, xw.win, h);
         XFree(h);
 }
Received on Mon Apr 28 2014 - 18:45:02 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 28 2014 - 18:48:11 CEST