diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-14 09:19:35 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-14 09:19:35 +1030 |
commit | 447441f4dfdd114ce1f738ccfda097ca1f4d609a (patch) | |
tree | 81290939fe87252e208726dd6a15ff9194e53214 | |
parent | 1b15f1bc3b8b33da3a30b7ee23c728dce9e48929 (diff) |
Remove XGrabAccessControl and XUngrabAccessControl calls.
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/XGrabAcc.c | 69 | ||||
-rw-r--r-- | src/XUngrabAcc.c | 69 |
3 files changed, 0 insertions, 140 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index e85fe78..607bb46 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -31,7 +31,6 @@ libXi_la_SOURCES = \ XGetProp.c \ XGetVers.c \ XGMotion.c \ - XGrabAcc.c \ XGrabDev.c \ XGrDvBut.c \ XGrDvKey.c \ @@ -52,7 +51,6 @@ libXi_la_SOURCES = \ XSndExEv.c \ XStFocus.c \ XUndefDevCur.c \ - XUngrabAcc.c \ XUngrDev.c \ XUngrDvB.c \ XUngrDvK.c \ diff --git a/src/XGrabAcc.c b/src/XGrabAcc.c deleted file mode 100644 index 12e4e4d..0000000 --- a/src/XGrabAcc.c +++ /dev/null @@ -1,69 +0,0 @@ -/************************************************************ - -Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au> - -Permission to use, copy, modify, distribute, and sell this software and its -documentation for any purpose is hereby granted without fee, provided that -the above copyright notice appear in all copies and that both that -copyright notice and this permission notice appear in supporting -documentation. - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of The Open Group shall not be -used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization from The Open Group. - -*/ - -/*********************************************************************** - * - * XGrabAccessControl - Register a client as allowed to control access to - * windows. - * Returns True on success or false otherwise. - * - */ - -#include <X11/extensions/XI.h> -#include <X11/extensions/XIproto.h> -#include <X11/Xlibint.h> -#include <X11/extensions/XInput.h> -#include <X11/extensions/extutil.h> -#include "XIint.h" - -Bool -XGrabAccessControl(Display* dpy) -{ - xGrabAccessControlReq* req; - xGrabAccessControlReply rep; - - XExtDisplayInfo *info = XInput_find_display(dpy); - - LockDisplay(dpy); - if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1) - return (NoSuchExtension); - - GetReq(GrabAccessControl, req); - - req->reqType = info->codes->major_opcode; - req->ReqType = X_GrabAccessControl; - req->ungrab = False; - - if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { - UnlockDisplay(dpy); - SyncHandle(); - return False; - } - - UnlockDisplay(dpy); - SyncHandle(); - return rep.success; -} diff --git a/src/XUngrabAcc.c b/src/XUngrabAcc.c deleted file mode 100644 index 048d398..0000000 --- a/src/XUngrabAcc.c +++ /dev/null @@ -1,69 +0,0 @@ -/************************************************************ - -Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au> - -Permission to use, copy, modify, distribute, and sell this software and its -documentation for any purpose is hereby granted without fee, provided that -the above copyright notice appear in all copies and that both that -copyright notice and this permission notice appear in supporting -documentation. - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN -AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -Except as contained in this notice, the name of The Open Group shall not be -used in advertising or otherwise to promote the sale, use or other dealings -in this Software without prior written authorization from The Open Group. - -*/ - -/*********************************************************************** - * - * XGrabAccessControl - Register a client as allowed to control access to - * windows. - * Returns True on success or false otherwise. - * - */ - -#include <X11/extensions/XI.h> -#include <X11/extensions/XIproto.h> -#include <X11/Xlibint.h> -#include <X11/extensions/XInput.h> -#include <X11/extensions/extutil.h> -#include "XIint.h" - -Bool -XUngrabAccessControl(Display* dpy) -{ - xGrabAccessControlReq* req; - xGrabAccessControlReply rep; - - XExtDisplayInfo *info = XInput_find_display(dpy); - - LockDisplay(dpy); - if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1) - return (NoSuchExtension); - - GetReq(GrabAccessControl, req); - - req->reqType = info->codes->major_opcode; - req->ReqType = X_GrabAccessControl; - req->ungrab = True; - - if (!_XReply(dpy, (xReply *) & rep, 0, xFalse)) { - UnlockDisplay(dpy); - SyncHandle(); - return False; - } - - UnlockDisplay(dpy); - SyncHandle(); - return rep.success; -} |