27 lines
970 B
Diff
27 lines
970 B
Diff
From 3ce102c362cadcd7087bdcf48440d9498eaf77d0 Mon Sep 17 00:00:00 2001
|
|
From: Peter Hutterer <peter.hutterer@who-t.net>
|
|
Date: Thu, 05 Jan 2012 12:08:01 +0000
|
|
Subject: 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>
|
|
---
|
|
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
|
|
{
|
|
--
|
|
cgit v0.9.0.2-2-gbebe
|