summaryrefslogtreecommitdiff
path: root/src/XIGrabDevice.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 19:58:39 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 19:58:39 +1000
commit8487030472914230bec6ecb95e58cf621e69b608 (patch)
treedec799567d560f9d6a41c9b16f0b60e806350bf0 /src/XIGrabDevice.c
parent3a699cda35a7c190010e5a974cd7a4e7be9df049 (diff)
Add a bunch of missing LockDisplay() calls.
Reported-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
Diffstat (limited to 'src/XIGrabDevice.c')
-rw-r--r--src/XIGrabDevice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/XIGrabDevice.c b/src/XIGrabDevice.c
index f97138c..bb668ee 100644
--- a/src/XIGrabDevice.c
+++ b/src/XIGrabDevice.c
@@ -41,6 +41,8 @@ XIGrabDevice(Display* dpy, int deviceid, Window grab_window, Time time,
int len;
XExtDisplayInfo *extinfo = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, Dont_Check, extinfo) == -1)
return (NoSuchExtension);