dix: don't try to confine cursor on screen restructure if there is no cursor.

Stops segfaulting when using xrandr. Yay.
This commit is contained in:
Peter Hutterer 2008-01-07 20:08:56 +10:30
parent 57a491e6d3
commit 20ace6321a

View File

@ -1481,6 +1481,8 @@ ScreenRestructured (ScreenPtr pScreen)
for (pDev = inputInfo.devices; pDev; pDev = pDev->next)
{
if (!DevHasCursor(pDev))
continue;
/* GrabDevice doesn't have a confineTo field, so we don't need to
* worry about it. */