summaryrefslogtreecommitdiff
path: root/src/XISetDevFocus.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/XISetDevFocus.c
parent3a699cda35a7c190010e5a974cd7a4e7be9df049 (diff)
Add a bunch of missing LockDisplay() calls.
Reported-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
Diffstat (limited to 'src/XISetDevFocus.c')
-rw-r--r--src/XISetDevFocus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/XISetDevFocus.c b/src/XISetDevFocus.c
index fe08c1f..c394c02 100644
--- a/src/XISetDevFocus.c
+++ b/src/XISetDevFocus.c
@@ -35,6 +35,8 @@ XISetDeviceFocus(Display *dpy, int deviceid, Window focus, Time time)
xXISetDeviceFocusReq *req;
XExtDisplayInfo *extinfo = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, Dont_Check, extinfo) == -1)
return (NoSuchExtension);