summaryrefslogtreecommitdiff
authorDanny Baumann <dannybaumann@web.de>2011-03-17 07:17:28 (GMT)
committer Danny Baumann <dannybaumann@web.de>2011-03-17 07:17:28 (GMT)
commit30a92d8a060d79181a28840d7c66428ef431200c (patch) (side-by-side diff)
treea7f0ed37aa73cf60ed0ac3bd3081fb2157d82d95
parenta9a35b6034517404b0c3ed4296f0c33d7d8d1d11 (diff)
downloadcore-30a92d8a060d79181a28840d7c66428ef431200c.tar.gz
core-30a92d8a060d79181a28840d7c66428ef431200c.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.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.c b/src/event.c
index 97c449c..c565c59 100644
--- a/src/event.c
+++ b/src/event.c
@@ -1692,7 +1692,7 @@ handleEvent (CompDisplay *d,
case ClientMessage:
if (event->xclient.message_type == d->winActiveAtom)
{
- w = findWindowAtDisplay (d, event->xclient.window);
+ w = findTopLevelWindowAtDisplay (d, event->xclient.window);
if (w)
{
CompFocusResult focus = CompFocusAllowed;