From 65183dc3153232943dff3cfbaacab141e7ed0e9c Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 5 Jul 2009 19:53:55 +0300 Subject: Input: Mark Xi input events as critical Note that the Xi events are critical and should thus cause a flush to the client when an input event is pending. Signed-off-by: Daniel Stone --- Xi/extinit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Xi') diff --git a/Xi/extinit.c b/Xi/extinit.c index d91de8f0e..84b999c0c 100644 --- a/Xi/extinit.c +++ b/Xi/extinit.c @@ -1018,15 +1018,19 @@ FixExtensionEvents(ExtensionEntry * extEntry) SetMaskForExtEvent(DeviceKeyPressMask, DeviceKeyPress); AllowPropagateSuppress(DeviceKeyPressMask); + SetCriticalEvent(DeviceKeyPress); SetMaskForExtEvent(DeviceKeyReleaseMask, DeviceKeyRelease); AllowPropagateSuppress(DeviceKeyReleaseMask); + SetCriticalEvent(DeviceKeyRelease); SetMaskForExtEvent(DeviceButtonPressMask, DeviceButtonPress); AllowPropagateSuppress(DeviceButtonPressMask); + SetCriticalEvent(DeviceButtonPress); SetMaskForExtEvent(DeviceButtonReleaseMask, DeviceButtonRelease); AllowPropagateSuppress(DeviceButtonReleaseMask); + SetCriticalEvent(DeviceButtonRelease); SetMaskForExtEvent(DeviceProximityMask, ProximityIn); SetMaskForExtEvent(DeviceProximityMask, ProximityOut); @@ -1035,6 +1039,7 @@ FixExtensionEvents(ExtensionEntry * extEntry) SetMaskForExtEvent(DevicePointerMotionMask, DeviceMotionNotify); AllowPropagateSuppress(DevicePointerMotionMask); + SetCriticalEvent(DeviceMotionNotify); SetEventInfo(DevicePointerMotionHintMask, _devicePointerMotionHint); SetEventInfo(DeviceButton1MotionMask, _deviceButton1Motion); -- cgit v1.2.3