Alexandre Julliard : winex11: Don' t try to retrieve the X11 size on ShowWindow for zero-sized windows.
Alexandre Julliard
julliard at winehq.org
Thu Sep 18 07:55:44 CDT 2008
Module: wine
Branch: master
Commit: 3cb23d3455f4efb7efc2124535df67c2f13f1406
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3cb23d3455f4efb7efc2124535df67c2f13f1406
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Sep 17 21:13:11 2008 +0200
winex11: Don't try to retrieve the X11 size on ShowWindow for zero-sized windows.
---
dlls/winex11.drv/window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index fb64299..4c03b4a 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2116,6 +2116,7 @@ UINT X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
if (!data || !data->whole_window || !data->managed || !data->mapped || data->iconic) return swp;
if (style & WS_MINIMIZE) return swp;
+ if (IsRectEmpty( rect )) return swp;
/* only fetch the new rectangle if the ShowWindow was a result of a window manager event */
More information about the wine-cvs
mailing list