xfreerdp: fixed "window shake" effect in RAIL Local Move/Size.
This commit is contained in:
parent
3a8236c49c
commit
059eff9f56
@ -377,7 +377,7 @@ void xf_process_rail_server_localmovesize_event(xfInfo* xfi, rdpChanMan* chanman
|
||||
movesize->windowId, movesize->isMoveSizeStart,
|
||||
movetype_names[movesize->moveSizeType], (sint16)movesize->posX, (sint16)movesize->posY);
|
||||
|
||||
#ifdef WITH_DEBUG_X11_LOCAL_MOVESIZE
|
||||
#if 1
|
||||
if (movesize->isMoveSizeStart)
|
||||
xf_StartLocalMoveSize(xfi, window, movesize->moveSizeType, (int) movesize->posX, (int) movesize->posY);
|
||||
else
|
||||
|
@ -488,7 +488,10 @@ void xf_MoveWindow(xfInfo* xfi, xfWindow* window, int x, int y, int width, int h
|
||||
|
||||
xf_FixWindowCoordinates(xfi, &x, &y, &width, &height);
|
||||
|
||||
XMoveResizeWindow(xfi->display, window->handle, x, y, width, height);
|
||||
if (!window->isLocalMoveSizeModeEnabled)
|
||||
{
|
||||
XMoveResizeWindow(xfi->display, window->handle, x, y, width, height);
|
||||
}
|
||||
|
||||
surface = XCreatePixmap(xfi->display, window->handle, width, height, xfi->depth);
|
||||
XCopyArea(xfi->display, surface, window->surface, window->gc, 0, 0, window->width, window->height, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user