From c08aa8ece760e487dfa9e86c772f315bc5baef94 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 3 Jan 2021 23:05:35 +1100 Subject: [PATCH] [client] spice: correct enter/leave event handling --- client/src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 154f4d34..a6afb50f 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1102,7 +1102,7 @@ int eventFilter(void * userdata, SDL_Event * event) break; case EnterNotify: - if (xe.xcrossing.detail != NotifyNonlinear) + if (xe.xcrossing.mode != NotifyNormal) break; state.curLastX = xe.xcrossing.x; @@ -1112,7 +1112,7 @@ int eventFilter(void * userdata, SDL_Event * event) break; case LeaveNotify: - if (xe.xcrossing.detail != NotifyNonlinear) + if (xe.xcrossing.mode != NotifyNormal) break; state.curLastX = xe.xcrossing.x;