summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-02 15:56:47 +0200
committerDanny Baumann <dannybaumann@web.de>2008-10-02 15:56:47 +0200
commit58b6bd9fce0d658c66428a73e98929f7cda95cb3 (patch)
tree827608c70236079179ee6a024e37567249f0869b /src
parentca7cb636f9f28759f193712ef72672b267f9a1b6 (diff)
We want to prevent focus for windows that are not on the current viewport.
Diffstat (limited to 'src')
-rw-r--r--src/event.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/event.c b/src/event.c
index 545fce07..8bd40fff 100644
--- a/src/event.c
+++ b/src/event.c
@@ -2052,9 +2052,7 @@ handleEvent (CompDisplay *d,
}
allowFocus = allowWindowFocus (w, NO_FOCUS_MASK,
- w->initialViewportX,
- w->initialViewportY,
- 0);
+ w->screen->x, w->screen->y, 0);
if (!allowFocus && (w->type & ~NO_FOCUS_MASK))
stackingMode = CompStackingUpdateModeInitialMapDeniedFocus;