summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-01-16 22:36:34 +0000
committerPeter Hutterer <peter.hutterer@who-t.net>2017-02-17 10:14:02 +1000
commit2a6904306f9cebc30aa472956a3417ff02221d00 (patch)
tree04e6b04482d736ed3dfafa10d1169d450ab73e45 /hw
parentda85ab9dd87e3646be8bc617bfd4c8a86ec0b662 (diff)
xfree86: Take input lock for xf86TransparentCursor
(cherry picked from commit cfddd919cce4178baba07959e5e862d02e166522)
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/ramdac/xf86HWCurs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xfree86/ramdac/xf86HWCurs.c b/hw/xfree86/ramdac/xf86HWCurs.c
index 55d5861c1..26dc7e5af 100644
--- a/hw/xfree86/ramdac/xf86HWCurs.c
+++ b/hw/xfree86/ramdac/xf86HWCurs.c
@@ -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