mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 15:48:07 +02:00
mi: simplify a "check for keyboard" condition
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <tissoire@cena.fr>
This commit is contained in:
parent
3a6160b408
commit
c2a9e0a969
1 changed files with 1 additions and 2 deletions
|
|
@ -193,8 +193,7 @@ miPointerDisplayCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor)
|
|||
miPointerPtr pPointer;
|
||||
|
||||
/* return for keyboards */
|
||||
if ((IsMaster(pDev) && !DevHasCursor(pDev)) ||
|
||||
(!IsMaster(pDev) && pDev->u.master && !DevHasCursor(pDev->u.master)))
|
||||
if (!IsPointerDevice(pDev))
|
||||
return FALSE;
|
||||
|
||||
pPointer = MIPOINTER(pDev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue