From bab7eba7f00a7d5a2935e7872456901518ec36ba Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 17 Jan 2021 14:38:31 +1100 Subject: [PATCH] [client] x11: prevent default mouse button/wheel handling by SDL --- client/displayservers/X11/x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 721dc208..f2929e55 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -209,6 +209,9 @@ static bool x11EventFilter(SDL_Event * event) #if SDL_VIDEO_DRIVER_X11_XINPUT2 case SDL_MOUSEMOTION: + case SDL_MOUSEBUTTONDOWN: + case SDL_MOUSEBUTTONUP: + case SDL_MOUSEWHEEL: return true; #endif }