Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
X11: search all XI2 touch devices, not just masters (thanks, Volumeti…
…c!).

Otherwise, you won't find touch devices that aren't currently assigned to a
system cursor.
  • Loading branch information
icculus committed Jun 1, 2015
1 parent 554b2b0 commit 05e78b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11xinput2.c
Expand Up @@ -183,7 +183,7 @@ X11_InitXinput2Multitouch(_THIS)
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];
Expand Down

0 comments on commit 05e78b3

Please sign in to comment.