Alexandre Julliard : winex11: Update the window shape offset when the window rect changes.

Alexandre Julliard julliard at winehq.org
Thu Feb 4 11:11:04 CST 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Feb  4 17:27:19 2010 +0100

winex11: Update the window shape offset when the window rect changes.

---

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

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 1dfecce..f466cd1 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -1326,6 +1326,15 @@ static void sync_window_position( Display *display, struct x11drv_win_data *data
     data->configure_serial = NextRequest( display );
     XReconfigureWMWindow( display, data->whole_window,
                           DefaultScreen(display), mask, &changes );
+#ifdef HAVE_LIBXSHAPE
+    if (data->shaped)
+    {
+        int x_offset = old_whole_rect->left - data->whole_rect.left;
+        int y_offset = old_whole_rect->top - data->whole_rect.top;
+        if (x_offset || y_offset)
+            XShapeOffsetShape( display, data->whole_window, ShapeBounding, x_offset, y_offset );
+    }
+#endif
     wine_tsx11_unlock();
 
     TRACE( "win %p/%lx pos %d,%d,%dx%d after %lx changes=%x serial=%lu\n",




More information about the wine-cvs mailing list