Skip to content

Commit

Permalink
Register for XI 2.2 in the main dpy
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
  • Loading branch information
whot committed Jul 23, 2013
1 parent ae24ed4 commit 75fdc11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/mtview.c
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ static void handle_xi2_event(Display *dpy, XEvent *e, struct touch_info *ti)

static int run_mtdev_xi2(int deviceid)
{
int major = 2, minor = 2;
struct windata w;
struct touch_info touch_info = {0};
XIEventMask mask;
Expand All @@ -725,6 +726,8 @@ static int run_mtdev_xi2(int deviceid)
return 1;
}

XIQueryVersion(w.dsp, &major, &minor);

if (init_device(w.dsp, deviceid, &touch_info))
return 1;

Expand Down

0 comments on commit 75fdc11

Please sign in to comment.