Dmitry Timoshkov : winex11.drv: Avoid copying window bits if the window didn't move.

Alexandre Julliard julliard at winehq.org
Tue Oct 5 14:41:49 CDT 2010


Module: wine
Branch: stable
Commit: bc62acea046886e8cf82a7dcf6ce46e4e21abe06
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bc62acea046886e8cf82a7dcf6ce46e4e21abe06

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Tue Sep 14 14:22:56 2010 +0900

winex11.drv: Avoid copying window bits if the window didn't move.
(cherry picked from commit c912af04deed53a0d1c06f03e4515ac838a896b1)

---

 dlls/winex11.drv/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 5050609..e288b82 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2342,7 +2342,7 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
             !memcmp( &valid_rects[0], &data->client_rect, sizeof(RECT) ))
         {
             /* if we have an X window the bits will be moved by the X server */
-            if (!data->whole_window)
+            if (!data->whole_window && (x_offset != 0 || y_offset != 0))
                 move_window_bits( data, &old_whole_rect, &data->whole_rect, &old_client_rect );
         }
         else




More information about the wine-cvs mailing list