mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[build] fix build without AINPUT channel
If the option was disabled, it was not building.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user