src/core/linux/SDL_evdev.c
changeset 12996 b4a7e94357f2
parent 12979 bbbb30026158
child 13257 0a2ce5c4d86f
     1.1 --- a/src/core/linux/SDL_evdev.c	Sun Aug 04 14:56:02 2019 +0300
     1.2 +++ b/src/core/linux/SDL_evdev.c	Sun Aug 04 16:56:40 2019 -0300
     1.3 @@ -401,18 +401,21 @@
     1.4                                  norm_pressure = 1.0f;
     1.5                              }
     1.6  
     1.7 +                            /* FIXME: the touch's window shouldn't be null, but
     1.8 +                             * the coordinate space of touch positions needs to
     1.9 +                             * be window-relative in that case. */
    1.10                              switch(item->touchscreen_data->slots[j].delta) {
    1.11                              case EVDEV_TOUCH_SLOTDELTA_DOWN:
    1.12 -                                SDL_SendTouch(item->fd, item->touchscreen_data->slots[j].tracking_id, /* FIXME: window */, SDL_TRUE, norm_x, norm_y, norm_pressure);
    1.13 +                                SDL_SendTouch(item->fd, item->touchscreen_data->slots[j].tracking_id, NULL, SDL_TRUE, norm_x, norm_y, norm_pressure);
    1.14                                  item->touchscreen_data->slots[j].delta = EVDEV_TOUCH_SLOTDELTA_NONE;
    1.15                                  break;
    1.16                              case EVDEV_TOUCH_SLOTDELTA_UP:
    1.17 -                                SDL_SendTouch(item->fd, item->touchscreen_data->slots[j].tracking_id, /* FIXME: window */, SDL_FALSE, norm_x, norm_y, norm_pressure);
    1.18 +                                SDL_SendTouch(item->fd, item->touchscreen_data->slots[j].tracking_id, NULL, SDL_FALSE, norm_x, norm_y, norm_pressure);
    1.19                                  item->touchscreen_data->slots[j].tracking_id = -1;
    1.20                                  item->touchscreen_data->slots[j].delta = EVDEV_TOUCH_SLOTDELTA_NONE;
    1.21                                  break;
    1.22                              case EVDEV_TOUCH_SLOTDELTA_MOVE:
    1.23 -                                SDL_SendTouchMotion(item->fd, item->touchscreen_data->slots[j].tracking_id, /* FIXME: window */, norm_x, norm_y, norm_pressure);
    1.24 +                                SDL_SendTouchMotion(item->fd, item->touchscreen_data->slots[j].tracking_id, NULL, norm_x, norm_y, norm_pressure);
    1.25                                  item->touchscreen_data->slots[j].delta = EVDEV_TOUCH_SLOTDELTA_NONE;
    1.26                                  break;
    1.27                              default: