summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-02 16:49:53 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-02 16:49:53 +0800
commitf627da78201b500eaa36c15e777799001e480a57 (patch)
treecaff659d290ecbd9807b60ffe22e4df934d11c2c
parentbdcf06e31bef6eb3b8bb6c4fcdabcbd92fef7980 (diff)
downloadextrawm-f627da78201b500eaa36c15e777799001e480a57.tar.gz
extrawm-f627da78201b500eaa36c15e777799001e480a57.tar.bz2
Do not allow windows to be added to our "waiting for attention" list it makes no sense to try and focus them on activating demand attention
-rw-r--r--src/extrawm.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/extrawm.cpp b/src/extrawm.cpp
index 694fc16..18f7e36 100644
--- a/src/extrawm.cpp
+++ b/src/extrawm.cpp
@@ -53,6 +53,23 @@ ExtraWMScreen::updateAttentionWindow (CompWindow *w)
XWMHints *hints;
bool urgent = false;
+ if (w->overrideRedirect ())
+ return;
+
+ if (w->wmType () & (CompWindowTypeDockMask | CompWindowTypeDesktopMask))
+ return;
+
+ if (!w->mapNum () || !w->isViewable ())
+ {
+ if (!w->minimized () &&
+ !w->inShowDesktopMode () &&
+ !w->shaded ())
+ return;
+ }
+
+ if (w->state () & CompWindowStateSkipTaskbarMask)
+ return;
+
hints = XGetWMHints (screen->dpy (), w->id ());
if (hints)
{
@@ -108,7 +125,7 @@ ExtraWMScreen::fullscreenWindow (CompWindow *w,
unsigned int state)
{
unsigned int newState = w->state ();
-
+
if (w->overrideRedirect ())
return;