diff --git a/client/common/client.c b/client/common/client.c index dc43b48e1..734a348f5 100644 --- a/client/common/client.c +++ b/client/common/client.c @@ -2140,6 +2140,10 @@ BOOL freerdp_client_use_relative_mouse_events(rdpClientContext* ccontext) const rdpSettings* settings = ccontext->context.settings; const BOOL useRelative = freerdp_settings_get_bool(settings, FreeRDP_MouseUseRelativeMove); const BOOL haveRelative = freerdp_settings_get_bool(settings, FreeRDP_HasRelativeMouseEvent); - const BOOL ainput = ccontext->ainput != NULL; + BOOL ainput = false; +#if defined(CHANNEL_AINPUT_SERVER) + ainput = ccontext->ainput != NULL; +#endif + return useRelative && (haveRelative || ainput); }