diff options
Diffstat (limited to 'xorg-server/dix/events.c')
-rw-r--r-- | xorg-server/dix/events.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/xorg-server/dix/events.c b/xorg-server/dix/events.c index 8dff29973..42f7c1b06 100644 --- a/xorg-server/dix/events.c +++ b/xorg-server/dix/events.c @@ -767,7 +767,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 { @@ -1203,7 +1206,7 @@ void PlayReleasedEvents(void) { QdEventPtr tmp; - QdEventPtr qe; + QdEventPtr qe=NULL; DeviceIntPtr dev; DeviceIntPtr pDev; @@ -2286,7 +2289,7 @@ DeliverRawEvent(RawDeviceEvent *ev, DeviceIntPtr device) if (rc != Success) { ErrorF("[Xi] %s: XI2 conversion failed in %s (%d)\n", - __func__, device->name, rc); + __FUNCTION__, device->name, rc); return; } @@ -2967,6 +2970,9 @@ CheckMotion(DeviceEvent *ev, DeviceIntPtr pDev) verify_internal_event((InternalEvent *)ev); + if (!pSprite) + return FALSE; + prevSpriteWin = pSprite->win; if (ev && !syncEvents.playingEvents) @@ -5329,7 +5335,8 @@ void InitEvents(void) { int i; - QdEventPtr qe, tmp; + QdEventPtr qe=NULL; + QdEventPtr tmp; inputInfo.numDevices = 0; inputInfo.devices = (DeviceIntPtr)NULL; |