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:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user