From 28922cf99040b066089a8678c154ec819faff140 Mon Sep 17 00:00:00 2001 From: Danny Baumann <dannybaumann@web.de> Date: Thu, 2 Oct 2008 15:56:47 +0200 Subject: [PATCH] We want to prevent focus for windows that are not on the current viewport. --- src/event.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/event.c b/src/event.c index 545fce0..8bd40ff 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; -- 1.6.0.2