mirror of https://github.com/FreeRDP/FreeRDP
xfreerdp-client: fix mouse position issue for scale
This commit is contained in:
parent
b1e603fb2e
commit
cff999e7e3
|
@ -170,13 +170,6 @@ static BOOL xf_event_MotionNotify(xfInfo* xfi, XEvent* event, BOOL app)
|
|||
y = (int)(y * (1.0 / xfi->scale) );
|
||||
}
|
||||
|
||||
if (xfi->scale != 1.0)
|
||||
{
|
||||
/* Take scaling in to consideration */
|
||||
x = (int) (x * (1.0 / xfi->scale));
|
||||
y = (int) (y * (1.0 / xfi->scale));
|
||||
}
|
||||
|
||||
input->MouseEvent(input, PTR_FLAGS_MOVE, x, y);
|
||||
|
||||
if (xfi->fullscreen)
|
||||
|
|
|
@ -1555,6 +1555,8 @@ void* xf_thread(void* param)
|
|||
gdi_free(instance);
|
||||
|
||||
ExitThread(exit_code);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
DWORD xf_exit_code_from_disconnect_reason(DWORD reason)
|
||||
|
|
Loading…
Reference in New Issue