summaryrefslogtreecommitdiff
path: root/src/XIDefineCursor.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-09-09 14:43:02 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-03-03 09:39:01 +1000
commit19ac7ef23e7ff07068a63d1553159e7cb3ad2576 (patch)
treeef613a8c4596d75477f1735f6478ff4bbba78c7f /src/XIDefineCursor.c
parent536bd44c513ede7e61e112c82a80fb9197f261f7 (diff)
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 <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/XIDefineCursor.c')
-rw-r--r--src/XIDefineCursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XIDefineCursor.c b/src/XIDefineCursor.c
index 5ad1534..be6dadb 100644
--- a/src/XIDefineCursor.c
+++ b/src/XIDefineCursor.c
@@ -44,7 +44,7 @@ int XIDefineCursor(Display *dpy, int deviceid, Window w, Cursor cursor)
XExtDisplayInfo *info = XInput_find_display(dpy);
LockDisplay(dpy);
- if (_XiCheckExtInit(dpy, Dont_Check, info) == -1)
+ if (_XiCheckExtInit(dpy, XInput_2_0, info) == -1)
return (NoSuchExtension);
GetReq(XIChangeCursor, req);