Added extended shadow support for mouse and unicode

This commit is contained in:
Armin Novak 2021-06-23 12:45:38 +02:00 committed by akallabeth
parent 42df492450
commit 4622c58332
2 changed files with 14 additions and 0 deletions

View File

@ -300,6 +300,17 @@ static BOOL x11_shadow_input_mouse_event(rdpShadowSubsystem* subsystem, rdpShado
XTestFakeButtonEvent(x11->display, button, True, (unsigned long)CurrentTime);
XTestFakeButtonEvent(x11->display, button, False, (unsigned long)CurrentTime);
}
else if (flags & PTR_FLAGS_HWHEEL)
{
BOOL negative = FALSE;
if (flags & PTR_FLAGS_WHEEL_NEGATIVE)
negative = TRUE;
button = (negative) ? 7 : 6;
XTestFakeButtonEvent(x11->display, button, True, (unsigned long)CurrentTime);
XTestFakeButtonEvent(x11->display, button, False, (unsigned long)CurrentTime);
}
else
{
if (flags & PTR_FLAGS_MOVE)

View File

@ -1785,6 +1785,9 @@ static DWORD WINAPI shadow_client_thread(LPVOID arg)
UpdateEvent = shadow_multiclient_getevent(UpdateSubscriber);
ChannelEvent = WTSVirtualChannelManagerGetEventHandle(client->vcm);
freerdp_settings_set_bool(settings, FreeRDP_UnicodeInput, TRUE);
freerdp_settings_set_bool(settings, FreeRDP_HasHorizontalWheel, TRUE);
freerdp_settings_set_bool(settings, FreeRDP_HasExtendedMouseEvent, TRUE);
while (1)
{
nCount = 0;