From 07c13a9d43e7683904c3fd9b8e1e0092267a9335 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 19 Jan 2021 20:46:12 +1100 Subject: [PATCH] [client] x11: fix regression, raw event's dont give us the cursor pos --- client/displayservers/X11/x11.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 6e2f7d71..6b891b6d 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -359,6 +359,16 @@ static bool x11EventFilter(SDL_Event * event) return true; } + case XI_Motion: + { + if (!x11.focused || !x11.entered) + return true; + + XIDeviceEvent *device = cookie->data; + app_updateCursorPos(device->event_x, device->event_y); + return true; + } + case XI_RawMotion: { if (!x11.focused || !x11.entered)