diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-02-11 11:41:47 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-02-22 14:35:44 +1000 |
commit | c2a9e0a96983f22f721196513e75a53ea0b86d7e (patch) | |
tree | 6568b99bc7f0d0711381ad99da4f477a144e117a /mi | |
parent | 3a6160b408447ce620140849f962683a5d139cb9 (diff) |
mi: simplify a "check for keyboard" condition
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <tissoire@cena.fr>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mipointer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mi/mipointer.c b/mi/mipointer.c index 124f9de4d..aa0ca6d78 100644 --- a/mi/mipointer.c +++ b/mi/mipointer.c @@ -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); |