summaryrefslogtreecommitdiff
path: root/src/XStFocus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XStFocus.c')
-rw-r--r--src/XStFocus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/XStFocus.c b/src/XStFocus.c
index 08578c8..e544126 100644
--- a/src/XStFocus.c
+++ b/src/XStFocus.c
@@ -72,6 +72,8 @@ XSetDeviceFocus(dpy, dev, focus, revert_to, time)
XExtDisplayInfo *info = XInput_find_display(dpy);
LockDisplay(dpy);
+ if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1)
+ return (NoSuchExtension);
GetReq(SetDeviceFocus, req);
req->reqType = info->codes->major_opcode;