mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 07:00:03 +01:00
mi: don't check for core events in miPointerSetPosition (#53568)
As of 81cfe44b1e, miPointerSetPosition now
returns the screen pointer of the device. This broke floating slave devices,
as soon as a motion event was submitted, miPointerSetPosition returned NULL,
crashing the server.
dev->coreEvents is only false if the device is a floating slave, in which
case it has a sprite.
X.Org Bug 53568 <http://bugs.freedesktop.org/show_bug.cgi?id=53568>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
bafbd99080
commit
d53e6e02a2
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, double *screenx,
|
|||
|
||||
miPointerPtr pPointer;
|
||||
|
||||
if (!pDev || !pDev->coreEvents)
|
||||
if (!pDev)
|
||||
return NULL;
|
||||
|
||||
pPointer = MIPOINTER(pDev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue