From f007af4a19174c5de3c566e3fa7c3609626ef031 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Tue, 10 Jul 2012 21:16:00 +0300 Subject: fix for desktops not marked as having an urgent hint the client needs to be compared to the current client of the current desktop, otherwise if the client was the current client on another desktop, it would not be marked with an urgent hint. --- monsterwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monsterwm.c b/monsterwm.c index facff32..5261e98 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -692,7 +692,7 @@ void propertynotify(XEvent *e) { Client *c = NULL; if (e->xproperty.atom != XA_WM_HINTS || !wintoclient(e->xproperty.window, &c, &d)) return; XWMHints *wmh = XGetWMHints(dis, c->win); - c->isurgn = (c != d->curr && wmh && (wmh->flags & XUrgencyHint)); + c->isurgn = (c != desktops[currdeskidx].curr && wmh && (wmh->flags & XUrgencyHint)); if (wmh) XFree(wmh); desktopinfo(); } -- cgit v1.3.1