From b10ed8a977078fdc40846586222217fa9255196d Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 18 May 2010 19:28:55 +0000 Subject: Update to libXi 1.3. Tested on a bulk ports build by naddy@. --- lib/libXi/src/XStFocus.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'lib/libXi/src/XStFocus.c') 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; -- cgit v1.2.3