mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 14:00:13 +01:00
xfree86: Take input lock for xf86TransparentCursor
This commit is contained in:
parent
7198a6d4e7
commit
cfddd919cc
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue