diff options
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monsterwm.c b/monsterwm.c index 9d4391d..a913392 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -687,8 +687,8 @@ void propertynotify(XEvent *e) { Client *c = wintoclient(e->xproperty.window); if (!c || e->xproperty.atom != XA_WM_HINTS) return; XWMHints *wmh = XGetWMHints(dis, c->win); - c->isurgent = c != curr && wmh && (wmh->flags & XUrgencyHint); - XFree(wmh); + c->isurgent = (c != curr && wmh && (wmh->flags & XUrgencyHint)); + if (wmh) XFree(wmh); desktopinfo(); } |
