[PATCH 3/6] Input: Actually send Xi 1.x DeviceStateNotify events
Daniel Stone
daniel at fooishbar.org
Tue Feb 15 03:27:59 PST 2011
When a client has selected for Xi 1.x DeviceStateNotify events, they
should receive them when a DeviceFocusIn event is generated. The code
to do this was there, but an incorrect test (checking the passed-in Xi 2
event type rather than the event's Xi 1 event type) meant they were
never being sent.
Signed-off-by: Daniel Stone <daniel at fooishbar.org>
---
Xi/exevents.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 5131167..e10cc3a 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -1278,7 +1278,7 @@ DeviceFocusEvent(DeviceIntPtr dev, int type, int mode, int detail,
DeliverEventsToWindow(dev, pWin, (xEvent *) & event, 1,
DeviceFocusChangeMask, NullGrab);
- if ((type == DeviceFocusIn) &&
+ if ((type == XI_FocusIn) &&
(wOtherInputMasks(pWin)) &&
(wOtherInputMasks(pWin)->inputEvents[dev->id] & DeviceStateNotifyMask))
{
--
1.7.2.3
More information about the xorg-devel
mailing list