dix: pass the sourceid around for enter/leave events.
The sourceid for enter/leave events as a result of pointer motion is the ID of the slave device. The sourceid for those as a result of a grab activating is the device itself. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
extern void DoEnterLeaveEvents(
|
||||
DeviceIntPtr pDev,
|
||||
int sourceid,
|
||||
WindowPtr fromWin,
|
||||
WindowPtr toWin,
|
||||
int mode
|
||||
@@ -64,6 +65,7 @@ extern void CoreEnterLeaveEvent(DeviceIntPtr mouse,
|
||||
WindowPtr pWin,
|
||||
Window child);
|
||||
extern void DeviceEnterLeaveEvent(DeviceIntPtr mouse,
|
||||
int sourceid,
|
||||
int type,
|
||||
int mode,
|
||||
int detail,
|
||||
|
||||
Reference in New Issue
Block a user