summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-01-05 07:08:01 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2012-01-06 08:05:59 +1000
commit3ce102c362cadcd7087bdcf48440d9498eaf77d0 (patch)
tree2985d7427c86250972a16836ca0c0e72b8b95908 /dix
parenta125aabda3a5cf27aa98cb61f16e49280b66f451 (diff)
dix: on PointerRootWin send a FocusIn to the sprite window too
XTS XSetDeviceFocus-7 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'dix')
-rw-r--r--dix/enterleave.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/enterleave.c b/dix/enterleave.c
index 2b8c7c5c3..89a82ab99 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
{