diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-10-20 09:57:05 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-10-20 09:57:05 +0200 |
commit | 55bfd98979f273fd542ed2bd979e4054056cc478 (patch) | |
tree | 3bf66a079215880c12cfc4e7d828cc30764bae81 | |
parent | 527ab570fff89bba9f9a0e0b7fb31ac23acf5aff (diff) | |
download | workarounds-55bfd98979f273fd542ed2bd979e4054056cc478.tar.gz workarounds-55bfd98979f273fd542ed2bd979e4054056cc478.tar.bz2 |
Use XWMHints structure provided by core.
-rw-r--r-- | workarounds.c | 12 |
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) { |