X11: search all XI2 touch devices, not just masters (thanks, Volumetic!).
authorRyan C. Gordon <icculus@icculus.org>
Sun, 31 May 2015 22:59:59 -0400
changeset 9696 a7e9b75ec1c9
parent 9695 363a7880b4f7
child 9697 152b686b9a75
X11: search all XI2 touch devices, not just masters (thanks, Volumetic!). Otherwise, you won't find touch devices that aren't currently assigned to a system cursor.
src/video/x11/SDL_x11xinput2.c
--- a/src/video/x11/SDL_x11xinput2.c	Sun May 31 22:48:26 2015 -0400
+++ b/src/video/x11/SDL_x11xinput2.c	Sun May 31 22:59:59 2015 -0400
@@ -183,7 +183,7 @@
     SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
     XIDeviceInfo *info;
     int ndevices,i,j;
-    info = X11_XIQueryDevice(data->display, XIAllMasterDevices, &ndevices);
+    info = X11_XIQueryDevice(data->display, XIAllDevices, &ndevices);
 
     for (i = 0; i < ndevices; i++) {
         XIDeviceInfo *dev = &info[i];