mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 23:00:05 +01:00
xfree86: fix wrong IsMaster() check causing crashes.
Crashes caused by dereferencing NULL if the path was executed for a floating slave device. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
50a2a8dc76
commit
97e29ffb5b
1 changed files with 1 additions and 2 deletions
|
|
@ -303,8 +303,7 @@ xf86CursorSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCurs,
|
|||
|
||||
if (pCurs == NullCursor) { /* means we're supposed to remove the cursor */
|
||||
if (ScreenPriv->SWCursor ||
|
||||
!(pDev == inputInfo.pointer || !IsMaster(pDev) &&
|
||||
GetMaster(pDev->u.master, MASTER_POINTER) == inputInfo.pointer))
|
||||
!(GetMaster(pDev, MASTER_POINTER) == inputInfo.pointer))
|
||||
(*ScreenPriv->spriteFuncs->SetCursor)(pDev, pScreen, NullCursor, x, y);
|
||||
else if (ScreenPriv->isUp) {
|
||||
xf86SetCursor(pScreen, NullCursor, x, y);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue