[PATCH 1/2] mi: Call pScreen->ConstrainCursorHarder from the position update path

Adam Jackson ajax at redhat.com
Tue Jan 18 21:58:40 PST 2011


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 mi/mipointer.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/mi/mipointer.c b/mi/mipointer.c
index 554397a..1f08133 100644
--- a/mi/mipointer.c
+++ b/mi/mipointer.c
@@ -229,6 +229,10 @@ miPointerSetCursorPosition(DeviceIntPtr pDev, ScreenPtr pScreen,
     SetupScreen (pScreen);
 
     GenerateEvent = generateEvent;
+
+    if (pScreen->ConstrainCursorHarder)
+        pScreen->ConstrainCursorHarder(pDev, pScreen, &x, &y);
+
     /* device dependent - must pend signal and call miPointerWarpCursor */
     (*pScreenPriv->screenFuncs->WarpCursor) (pDev, pScreen, x, y);
     if (!generateEvent)
-- 
1.7.3.4



More information about the xorg-devel mailing list