xfree86: Take input lock for xf86TransparentCursor

This commit is contained in:
Chris Wilson 2017-01-16 22:36:34 +00:00 committed by Peter Hutterer
parent 7198a6d4e7
commit cfddd919cc

View File

@ -261,6 +261,8 @@ xf86SetTransparentCursor(ScreenPtr pScreen)
xf86CursorScreenKey);
xf86CursorInfoPtr infoPtr = ScreenPriv->CursorInfoPtr;
input_lock();
if (!ScreenPriv->transparentData)
ScreenPriv->transparentData =
(*infoPtr->RealizeCursor) (infoPtr, NullCursor);
@ -273,6 +275,8 @@ xf86SetTransparentCursor(ScreenPtr pScreen)
ScreenPriv->transparentData);
(*infoPtr->ShowCursor) (infoPtr->pScrn);
input_unlock();
}
static void