Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
17fa149
)
Use MODBIT in xseturgency.
author
noname <
[email protected]
>
Sun, 27 Apr 2014 11:39:39 +0000
(15:39 +0400)
committer
Roberto E. Vargas Caballero <
[email protected]
>
Mon, 28 Apr 2014 16:38:06 +0000
(18:38 +0200)
st.c
diff
|
blob
|
history
diff --git
a/st.c
b/st.c
index
fb206a3
..
d5a8257
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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);
}