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 9696a7e9b75ec1c9
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
     1.1 --- a/src/video/x11/SDL_x11xinput2.c	Sun May 31 22:48:26 2015 -0400
     1.2 +++ b/src/video/x11/SDL_x11xinput2.c	Sun May 31 22:59:59 2015 -0400
     1.3 @@ -183,7 +183,7 @@
     1.4      SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
     1.5      XIDeviceInfo *info;
     1.6      int ndevices,i,j;
     1.7 -    info = X11_XIQueryDevice(data->display, XIAllMasterDevices, &ndevices);
     1.8 +    info = X11_XIQueryDevice(data->display, XIAllDevices, &ndevices);
     1.9  
    1.10      for (i = 0; i < ndevices; i++) {
    1.11          XIDeviceInfo *dev = &info[i];