From d7d67af44164fdf80c8f7103b22ad5bdb356dc7a Mon Sep 17 00:00:00 2001 From: Cameron Gutman <aicommander@gmail.com> Date: Sun, 14 Nov 2021 17:52:41 -0600 Subject: [PATCH] mouse: Fix Y value in motion events when confinement is active --- src/events/SDL_mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/SDL_mouse.c b/src/events/SDL_mouse.c index 9d2ea9a65..539f17138 100644 --- a/src/events/SDL_mouse.c +++ b/src/events/SDL_mouse.c @@ -428,7 +428,7 @@ SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relativ x_min = mouse_rect.x; y_min = mouse_rect.y; x_max = x_min + mouse_rect.w - 1; - y_min = y_min + mouse_rect.h - 1; + y_max = y_min + mouse_rect.h - 1; } }