Implement touch window IDs on x11/xinput2.
authorAlex Szpakowski <slime73@gmail.com>
Sun, 04 Aug 2019 00:34:23 -0300
changeset 12994a9c33584781c
parent 12991 6179a871076a
child 12995 db8413ae083c
Implement touch window IDs on x11/xinput2.
src/video/x11/SDL_x11xinput2.c
     1.1 --- a/src/video/x11/SDL_x11xinput2.c	Sat Aug 03 12:50:28 2019 +0300
     1.2 +++ b/src/video/x11/SDL_x11xinput2.c	Sun Aug 04 00:34:23 2019 -0300
     1.3 @@ -230,7 +230,7 @@
     1.4              float x, y;
     1.5              SDL_Window *window = xinput2_get_sdlwindow(videodata, xev->event);
     1.6              xinput2_normalize_touch_coordinates(window, xev->event_x, xev->event_y, &x, &y);
     1.7 -            SDL_SendTouch(xev->sourceid,xev->detail, /* FIXME: window */, SDL_TRUE, x, y, 1.0);
     1.8 +            SDL_SendTouch(xev->sourceid, xev->detail, window, SDL_TRUE, x, y, 1.0);
     1.9              return 1;
    1.10              }
    1.11              break;
    1.12 @@ -239,7 +239,7 @@
    1.13              float x, y;
    1.14              SDL_Window *window = xinput2_get_sdlwindow(videodata, xev->event);
    1.15              xinput2_normalize_touch_coordinates(window, xev->event_x, xev->event_y, &x, &y);
    1.16 -            SDL_SendTouch(xev->sourceid,xev->detail, /* FIXME: window */, SDL_FALSE, x, y, 1.0);
    1.17 +            SDL_SendTouch(xev->sourceid, xev->detail, window, SDL_FALSE, x, y, 1.0);
    1.18              return 1;
    1.19              }
    1.20              break;
    1.21 @@ -248,7 +248,7 @@
    1.22              float x, y;
    1.23              SDL_Window *window = xinput2_get_sdlwindow(videodata, xev->event);
    1.24              xinput2_normalize_touch_coordinates(window, xev->event_x, xev->event_y, &x, &y);
    1.25 -            SDL_SendTouchMotion(xev->sourceid,xev->detail, /* FIXME: window */, x, y, 1.0);
    1.26 +            SDL_SendTouchMotion(xev->sourceid, xev->detail, window, x, y, 1.0);
    1.27              return 1;
    1.28              }
    1.29              break;