summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-04-30 22:11:10 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-04-30 22:11:10 +0800
commit152295e9319c3c30b074e125475f30a4909f8091 (patch)
tree56b68407872ca617e5caa8cc3e420c238a74e32a /src
parent74e8e9698d8851cfb40c81bd0648dcb56032e34c (diff)
downloadmobilebling-152295e9319c3c30b074e125475f30a4909f8091.tar.gz
mobilebling-152295e9319c3c30b074e125475f30a4909f8091.tar.bz2
Check if ancestor to transient is allowed to have focus before granting focus
to it. Some stupid apps like thunderbird unmap the transient parent before unmapping the child, so compiz will get all confused and try to give focus to the unmapped window
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index f8afed8..4e222ab 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2034,6 +2034,7 @@ CompWindow::moveInputFocusToOtherWindow ()
{
ancestor = screen->findWindow (priv->transientFor);
if (ancestor &&
+ ancestor->focus () &&
!(ancestor->priv->type & (CompWindowTypeDesktopMask |
CompWindowTypeDockMask)))
{