From b5f4c639fd46a816f3c5cc8dc559b308bde2f194 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 7 Apr 2020 14:54:00 +1000 Subject: [PATCH] [client] provide better mouse tracking when exiting/entering the window --- VERSION | 2 +- client/src/main.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 56402ed6..05305d61 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-162-gb953b2b807+1 \ No newline at end of file +B1-163-g577c54d20d+1 \ No newline at end of file diff --git a/client/src/main.c b/client/src/main.c index 94b09bae..bf0d7b59 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -860,10 +860,16 @@ int eventFilter(void * userdata, SDL_Event * event) break; case EnterNotify: + state.curLocalX = xe.xcrossing.x; + state.curLocalY = xe.xcrossing.y; + state.haveCurLocal = true; handleWindowEnter(); break; case LeaveNotify: + state.curLocalX = xe.xcrossing.x; + state.curLocalY = xe.xcrossing.y; + state.haveCurLocal = true; handleWindowLeave(); break; }