From 19ac7ef23e7ff07068a63d1553159e7cb3ad2576 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 9 Sep 2010 14:43:02 +1000 Subject: Require XI 2 for all XI 2 calls. Each XI2 call should check _XiCheckExtInit for XI version 2.0 or higher. Signed-off-by: Peter Hutterer Reviewed-by: Daniel Stone --- src/XIPassiveGrab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/XIPassiveGrab.c') diff --git a/src/XIPassiveGrab.c b/src/XIPassiveGrab.c index 98eb806..ada658f 100644 --- a/src/XIPassiveGrab.c +++ b/src/XIPassiveGrab.c @@ -45,7 +45,7 @@ _XIPassiveGrabDevice(Display* dpy, int deviceid, int grabtype, int detail, XExtDisplayInfo *extinfo = XInput_find_display(dpy); LockDisplay(dpy); - if (_XiCheckExtInit(dpy, Dont_Check, extinfo) == -1) + if (_XiCheckExtInit(dpy, XInput_2_0, extinfo) == -1) return -1; GetReq(XIPassiveGrabDevice, req); @@ -155,7 +155,7 @@ _XIPassiveUngrabDevice(Display* dpy, int deviceid, int grabtype, int detail, XExtDisplayInfo *extinfo = XInput_find_display(dpy); LockDisplay(dpy); - if (_XiCheckExtInit(dpy, Dont_Check, extinfo) == -1) + if (_XiCheckExtInit(dpy, XInput_2_0, extinfo) == -1) return -1; GetReq(XIPassiveUngrabDevice, req); -- cgit v1.2.3