[PATCH 1/2] [try4] winex11.drv: Retrieve the visible rect from a future exported function in SetWindowPos.

Pierre d'Herbemont pdherbemont at free.fr
Tue Apr 10 07:39:19 CDT 2007


Thanks again, Alexandre, for the pointers.

---
  dlls/winex11.drv/winpos.c |   16 +++++++++++++++-
  1 files changed, 15 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index e41b11f..0fb6893 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -240,6 +240,20 @@ static BOOL fullscreen_state_changed( const struct x11drv_win_data *data,
 
 
 /***********************************************************************
+ *		X11DRV_GetVisibleRect
+ */
+BOOL X11DRV_GetVisibleRect( HWND hwnd, RECT *rect)
+{
+    struct x11drv_win_data *data;
+
+    if (!(data = X11DRV_get_win_data( hwnd ))) return FALSE;
+
+    X11DRV_window_to_X_rect( data, rect );
+
+    return TRUE;
+}
+
+/***********************************************************************
  *		SetWindowPos   (X11DRV.@)
  */
 BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
@@ -254,7 +268,7 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
     if (!(data = X11DRV_get_win_data( hwnd ))) return FALSE;
 
     new_whole_rect = *rectWindow;
-    X11DRV_window_to_X_rect( data, &new_whole_rect );
+    X11DRV_GetVisibleRect( hwnd, &new_whole_rect );
 
     old_client_rect = data->client_rect;
 


More information about the wine-patches mailing list