aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2012-07-10 21:16:00 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2012-07-20 18:52:18 +0300
commitf007af4a19174c5de3c566e3fa7c3609626ef031 (patch)
tree377900de9b4053f2e07c7a74ac13124a3e6c2fed
parent2f5e013d29a04852f5926f82edf6dd3f3fed1955 (diff)
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.
-rw-r--r--monsterwm.c2
1 files changed, 1 insertions, 1 deletions
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();
}