From 3ce102c362cadcd7087bdcf48440d9498eaf77d0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 5 Jan 2012 07:08:01 -0500 Subject: [PATCH] dix: on PointerRootWin send a FocusIn to the sprite window too XTS XSetDeviceFocus-7 Signed-off-by: Peter Hutterer Reviewed-by: Chase Douglas --- dix/enterleave.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dix/enterleave.c b/dix/enterleave.c index 2b8c7c5..89a82ab 100644 --- a/dix/enterleave.c +++ b/dix/enterleave.c @@ -1299,7 +1299,10 @@ DeviceFocusEvents(DeviceIntPtr dev, for (i = 0; i < nscreens; i++) DeviceFocusEvent(dev, XI_FocusIn, mode, in, screenInfo.screens[i]->root); if (to == PointerRootWin) + { DeviceFocusInEvents(dev, GetCurrentRootWindow(dev), sprite->win, mode, NotifyPointer); + DeviceFocusEvent(dev, XI_FocusIn, mode, NotifyPointer, sprite->win); + } } else { -- 1.7.7