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. --HG-- extra : rebase_source : 627c32c248ce7a7d25a444216a71772f055ff308
This commit is contained in:
parent
eb6be57e8a
commit
b1dff30d12
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ X11_InitXinput2Multitouch(_THIS)
|
||||||
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
|
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
|
||||||
XIDeviceInfo *info;
|
XIDeviceInfo *info;
|
||||||
int ndevices,i,j;
|
int ndevices,i,j;
|
||||||
info = X11_XIQueryDevice(data->display, XIAllMasterDevices, &ndevices);
|
info = X11_XIQueryDevice(data->display, XIAllDevices, &ndevices);
|
||||||
|
|
||||||
for (i = 0; i < ndevices; i++) {
|
for (i = 0; i < ndevices; i++) {
|
||||||
XIDeviceInfo *dev = &info[i];
|
XIDeviceInfo *dev = &info[i];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue