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:
parent
57a491e6d3
commit
20ace6321a
|
@ -1481,6 +1481,8 @@ ScreenRestructured (ScreenPtr pScreen)
|
||||||
|
|
||||||
for (pDev = inputInfo.devices; pDev; pDev = pDev->next)
|
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
|
/* GrabDevice doesn't have a confineTo field, so we don't need to
|
||||||
* worry about it. */
|
* worry about it. */
|
||||||
|
|
Loading…
Reference in New Issue