tfixed urgent hint handling - 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 5d9ae3f3b7ad904218add1c2559eec9a7a073e3e
(DIR) parent 2e38296edd5fbafbb93a42333af22ba9edd667bf
(HTM) Author: Anselm R Garbe <garbeam@gmail.com>
Date: Wed, 5 Mar 2008 13:13:13 +0000
fixed urgent hint handling
Diffstat:
M dwm.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/dwm.c b/dwm.c
t@@ -1870,10 +1870,11 @@ void
updatewmhints(Client *c) {
XWMHints *wmh;
- if(c == sel)
- return;
if((wmh = XGetWMHints(dpy, c->win))) {
- c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
+ if(c == sel)
+ sel->isurgent = False;
+ else
+ c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
XFree(wmh);
}
}