diff options
Diffstat (limited to 'src/XIGetDevFocus.c')
-rw-r--r-- | src/XIGetDevFocus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/XIGetDevFocus.c b/src/XIGetDevFocus.c index 32adfde..1381066 100644 --- a/src/XIGetDevFocus.c +++ b/src/XIGetDevFocus.c @@ -36,6 +36,8 @@ XIGetDeviceFocus(Display *dpy, int deviceid, Window *focus_return) xXIGetDeviceFocusReply reply; XExtDisplayInfo *extinfo = XInput_find_display(dpy); + + LockDisplay(dpy); if (_XiCheckExtInit(dpy, Dont_Check, extinfo) == -1) return (NoSuchExtension); |