src/video/wayland/SDL_waylandevents.c
changeset 9556 db92b9d74129
parent 9555 fff4b6354b99
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9555:fff4b6354b99 9556:db92b9d74129
   123 {
   123 {
   124     struct SDL_WaylandInput *input = data;
   124     struct SDL_WaylandInput *input = data;
   125     SDL_WindowData *window = input->pointer_focus;
   125     SDL_WindowData *window = input->pointer_focus;
   126     input->sx_w = sx_w;
   126     input->sx_w = sx_w;
   127     input->sy_w = sy_w;
   127     input->sy_w = sy_w;
   128     int sx = wl_fixed_to_int(sx_w);
       
   129     int sy = wl_fixed_to_int(sy_w);
       
   130     if (input->pointer_focus) {
   128     if (input->pointer_focus) {
       
   129         const int sx = wl_fixed_to_int(sx_w);
       
   130         const int sy = wl_fixed_to_int(sy_w);
   131         SDL_SendMouseMotion(window->sdlwindow, 0, 0, sx, sy);
   131         SDL_SendMouseMotion(window->sdlwindow, 0, 0, sx, sy);
   132     }
   132     }
   133 }
   133 }
   134 
   134 
   135 static SDL_bool
   135 static SDL_bool