xfreerdp: fixed "window shake" effect in RAIL Local Move/Size.

This commit is contained in:
roman-b 2011-09-06 00:25:46 +03:00
parent 3a8236c49c
commit 059eff9f56
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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);