소스 검색

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.
Ryan C. Gordon 10 년 전
부모
커밋
05e78b3f49
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/x11/SDL_x11xinput2.c

+ 1 - 1
src/video/x11/SDL_x11xinput2.c

@@ -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];