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

Alexandre Julliard julliard at winehq.org
Tue Sep 14 17:35:25 CDT 2010


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

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.

---

 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 99dbf49..3c0f303 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2339,7 +2339,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