diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2010-12-07 20:25:25 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-02-28 08:29:08 +0100 |
commit | 89c6a7ee9eef9dc44ebde863ba1d3558d761beea (patch) | |
tree | 883b615276eae5a526c01a462c2df8c8c2e1af78 | |
parent | e07a86fa0dcc173b96b5a7f9b8d1c2f61be01f08 (diff) |
wayland: handle_motion: use sx and sy (relative to the surface)
-rw-r--r-- | src/video/wayland/SDL_waylandevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index c71bb66e..0b1ddef3 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -94,7 +94,7 @@ window_handle_motion(void *data, struct wl_input_device *input_device, input->y = y; input->sx = sx; input->sy = sy; - SDL_SendMouseMotion(window->sdlwindow, 0, x, y); + SDL_SendMouseMotion(window->sdlwindow, 0, sx, sy); //location = get_pointer_location(window, input->sx, input->sy); //set_pointer_image(input, time, pointer); |