From 236c69d6034b152598ce35abaf3559b0eaa89c12 Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 17 Nov 2009 15:45:56 +0000 Subject: Solved endless loop problem when moving the cursor between 2 screens together with +xinerama. (The problem was worse when screen 1 was left to screen 0) --- xorg-server/dix/events.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xorg-server/dix') diff --git a/xorg-server/dix/events.c b/xorg-server/dix/events.c index d070a4c6f..8f26bd618 100644 --- a/xorg-server/dix/events.c +++ b/xorg-server/dix/events.c @@ -779,7 +779,10 @@ CheckPhysLimits( { #ifdef PANORAMIX if (!noPanoramiXExtension) - XineramaSetCursorPosition (pDev, new.x, new.y, generateEvents); + { + if (pScreen && ((new.x != pSprite->hotPhys.x) || (new.y != pSprite->hotPhys.y))) + XineramaSetCursorPosition (pDev, new.x, new.y, generateEvents); + } else #endif { -- cgit v1.2.3