diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-05-18 19:28:55 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-05-18 19:28:55 +0000 |
commit | b10ed8a977078fdc40846586222217fa9255196d (patch) | |
tree | 919b7a4888f18144093807f0ed5d2a15798dd5d6 /lib/libXi/src/XStFocus.c | |
parent | deed853a98813032c070cc01de9defc5ca33b21f (diff) |
Update to libXi 1.3. Tested on a bulk ports build by naddy@.
Diffstat (limited to 'lib/libXi/src/XStFocus.c')
-rw-r--r-- | lib/libXi/src/XStFocus.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/libXi/src/XStFocus.c b/lib/libXi/src/XStFocus.c index 08578c836..273cd0d0b 100644 --- a/lib/libXi/src/XStFocus.c +++ b/lib/libXi/src/XStFocus.c @@ -1,5 +1,3 @@ -/* $Xorg: XStFocus.c,v 1.4 2001/02/09 02:03:51 xorgcvs Exp $ */ - /************************************************************ Copyright 1989, 1998 The Open Group @@ -45,7 +43,6 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ -/* $XFree86: xc/lib/Xi/XStFocus.c,v 3.3 2001/12/14 19:55:23 dawes Exp $ */ /*********************************************************************** * @@ -61,17 +58,19 @@ SOFTWARE. #include "XIint.h" int -XSetDeviceFocus(dpy, dev, focus, revert_to, time) - register Display *dpy; - XDevice *dev; - Window focus; - int revert_to; - Time time; +XSetDeviceFocus( + register Display *dpy, + XDevice *dev, + Window focus, + int revert_to, + Time time) { xSetDeviceFocusReq *req; 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; |