Module: wine Branch: master Commit: 3cb23d3455f4efb7efc2124535df67c2f13f1406 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3cb23d3455f4efb7efc2124535...
Author: Alexandre Julliard julliard@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 */