summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2011-03-18 13:01:03 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-18 13:01:03 +0800
commit149bc1f4aa91b9def2b344d8ad0dab8407533f62 (patch)
treecec01ce4cab4984be006f9045cfcbdb05e0425df /src
parentf6d33f07d7d5cb8544d053104372a27dc09dfd22 (diff)
downloadmobilebling-149bc1f4aa91b9def2b344d8ad0dab8407533f62.tar.gz
mobilebling-149bc1f4aa91b9def2b344d8ad0dab8407533f62.tar.bz2
Don't grant focus to override_redirect windows. Most other window managers don't even track override_redirect windows, so applications relying on the focus being granted to override_redirect windows are broken anyway.
Forward port 30a92d8a060d79181a28840d7c66428ef431200c to master
Diffstat (limited to 'src')
-rw-r--r--src/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 3a13299..06f84cc 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -1454,7 +1454,7 @@ CompScreen::handleEvent (XEvent *event)
case ClientMessage:
if (event->xclient.message_type == Atoms::winActive)
{
- w = findWindow (event->xclient.window);
+ w = findTopLevelWindow (event->xclient.window);
if (w)
{
/* use focus stealing prevention if request came