winex11: Don't try to retrieve the X11 size on ShowWindow for zero-sized windows.

This commit is contained in:
Alexandre Julliard 2008-09-17 21:13:11 +02:00
parent 308476ef2f
commit 3cb23d3455
1 changed files with 1 additions and 0 deletions

View File

@ -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 */