[PATCH 17/20] mi: check for MASTER_POINTER instead of manual checks.

Peter Hutterer peter.hutterer at who-t.net
Thu Feb 17 19:52:24 PST 2011


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 mi/mipointer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mi/mipointer.c b/mi/mipointer.c
index 5b82978..209ea06 100644
--- a/mi/mipointer.c
+++ b/mi/mipointer.c
@@ -540,7 +540,7 @@ miPointerMoveNoEvent (DeviceIntPtr pDev, ScreenPtr pScreen,
      * VCP, as this may cause a non-HW rendered cursor to be rendered during
      * SIGIO. This again leads to allocs during SIGIO which leads to SIGABRT.
      */
-    if ((pDev == inputInfo.pointer || (!IsMaster(pDev) && pDev->u.master == inputInfo.pointer))
+    if (GetMaster(pDev, MASTER_POINTER) == inputInfo.pointer
         && !pScreenPriv->waitForUpdate && pScreen == pPointer->pSpriteScreen)
     {
 	pPointer->devx = x;
-- 
1.7.4



More information about the xorg-devel mailing list