summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--workarounds.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/workarounds.c b/workarounds.c
index 0e0f9a1..5e0c221 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -274,19 +274,11 @@ workaroundsUpdateSticky (CompWindow *w)
static void
updateUrgencyState (CompWindow *w)
{
- XWMHints *hints;
- Bool urgent = FALSE;
+ Bool urgent;
WORKAROUNDS_WINDOW (w);
- hints = XGetWMHints (w->screen->display->display, w->id);
- if (hints)
- {
- if (hints->flags & XUrgencyHint)
- urgent = TRUE;
-
- XFree (hints);
- }
+ urgent = (w->hints && (w->hints->flags & XUrgencyHint));
if (urgent)
{