xfreerdp: fixed "window shake" effect in RAIL Local Move/Size.
authorroman-b <romanbarabanov@gmail.com>
Mon, 5 Sep 2011 21:25:46 +0000 (00:25 +0300)
committerroman-b <romanbarabanov@gmail.com>
Mon, 5 Sep 2011 21:25:46 +0000 (00:25 +0300)
client/X11/xf_rail.c
client/X11/xf_window.c

index e475a93..c5486a4 100644 (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
index 5581796..72450e2 100644 (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);