xfreerdp: disable RemoteApp mouse motion
This commit is contained in:
parent
9b40f800de
commit
3f4cd54ad2
@ -134,7 +134,7 @@ boolean xf_event_MotionNotify(xfInfo* xfi, XEvent* event, boolean app)
|
||||
if (xfi->fullscreen)
|
||||
XSetInputFocus(xfi->display, xfi->window->handle, RevertToPointerRoot, CurrentTime);
|
||||
}
|
||||
else
|
||||
else if (xfi->mouse_motion == True)
|
||||
{
|
||||
xfWindow* xfw;
|
||||
rdpWindow* window;
|
||||
|
@ -81,10 +81,6 @@ void xf_rail_CreateWindow(rdpRail* rail, rdpWindow* window)
|
||||
printf("xf_rail_CreateWindow: wid=0x%X own_wid=0x%X\n",
|
||||
window->windowId, window->ownerWindowId);
|
||||
|
||||
|
||||
// When ownerWindowId is equal to 0, it means that
|
||||
// it is a main application window.
|
||||
// For main application windows screen window is parent. (0 in Win32)
|
||||
xfparent = NULL;
|
||||
if (window->ownerWindowId != 0)
|
||||
{
|
||||
@ -166,8 +162,6 @@ void xf_rail_SetWindowRects(rdpRail* rail, rdpWindow* window)
|
||||
xfi = (xfInfo*) rail->extra;
|
||||
xfw = (xfWindow*) window->extra;
|
||||
|
||||
printf("SetWindowRects\n");
|
||||
|
||||
xf_SetWindowRects(xfi, xfw, window->windowRects, window->numWindowRects);
|
||||
}
|
||||
|
||||
@ -263,6 +257,8 @@ void xf_process_rail_get_sysparams_event(xfInfo* xfi, rdpChanMan* chanman, RDP_E
|
||||
sysparam->taskbarPos.right = 0;
|
||||
sysparam->taskbarPos.bottom = 0;
|
||||
|
||||
sysparam->dragFullWindows = False;
|
||||
|
||||
xf_send_rail_client_event(chanman, RDP_EVENT_TYPE_RAIL_CLIENT_SET_SYSPARAMS, sysparam);
|
||||
}
|
||||
|
||||
|
@ -364,15 +364,14 @@ xfWindow* xf_CreateWindow(xfInfo* xfi, xfWindow* parent, int x, int y, int width
|
||||
|
||||
void xf_MoveWindow(xfInfo* xfi, xfWindow* window, int x, int y, int width, int height)
|
||||
{
|
||||
int lx, ly;
|
||||
Pixmap surface;
|
||||
int lx = x;
|
||||
int ly = y;
|
||||
|
||||
if ((width * height) < 1)
|
||||
return;
|
||||
|
||||
printf("xf_MoveWindow: BEFORE correctness h=0x%X x=%d y=%d w=%d h=%d\n", (uint32)window->handle,
|
||||
x, y, width, height);
|
||||
printf("xf_MoveWindow: BEFORE correctness h=0x%X x=%d y=%d w=%d h=%d\n",
|
||||
(uint32) window->handle, x, y, width, height);
|
||||
|
||||
xf_FixWindowCoordinates(&x, &y, &width, &height);
|
||||
|
||||
@ -381,9 +380,14 @@ void xf_MoveWindow(xfInfo* xfi, xfWindow* window, int x, int y, int width, int h
|
||||
lx = x - window->parent->left;
|
||||
ly = y - window->parent->top;
|
||||
}
|
||||
else
|
||||
{
|
||||
lx = x;
|
||||
ly = y;
|
||||
}
|
||||
|
||||
printf("xf_MoveWindow: AFTER correctness h=0x%X x=%d y=%d lx=%d ly=%d w=%d h=%d \n", (uint32)window->handle,
|
||||
x, y, lx, ly, width, height);
|
||||
printf("xf_MoveWindow: AFTER correctness h=0x%X x=%d y=%d lx=%d ly=%d w=%d h=%d \n",
|
||||
(uint32) window->handle, x, y, lx, ly, width, height);
|
||||
|
||||
if (window->width == width && window->height == height)
|
||||
XMoveWindow(xfi->display, window->handle, lx, ly);
|
||||
|
@ -295,7 +295,7 @@ boolean xf_pre_connect(freerdp* instance)
|
||||
xfi->depth = DefaultDepthOfScreen(xfi->screen);
|
||||
xfi->big_endian = (ImageByteOrder(xfi->display) == MSBFirst);
|
||||
|
||||
xfi->mouse_motion = True;
|
||||
xfi->mouse_motion = False;
|
||||
xfi->decoration = settings->decorations;
|
||||
xfi->remote_app = settings->remote_app;
|
||||
xfi->fullscreen = settings->fullscreen;
|
||||
|
Loading…
Reference in New Issue
Block a user