mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
mi: don't crash if we're trying to update the pointer for a keyboard.
If a device doesn't have a pointer, just return. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -367,6 +367,9 @@ miPointerUpdateSprite (DeviceIntPtr pDev)
|
||||
|
||||
pPointer = MIPOINTER(pDev);
|
||||
|
||||
if (!pPointer)
|
||||
return;
|
||||
|
||||
pScreen = pPointer->pScreen;
|
||||
if (!pScreen)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user