Use the event's width and height not the translated window rect to

recognize a zero sized window in the ConfigureNotify handler.
This commit is contained in:
Dmitry Timoshkov 2005-09-19 15:25:53 +00:00 committed by Alexandre Julliard
parent cfccc16d96
commit 9628a781bf

View File

@ -1195,7 +1195,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
if ((rect.right - rect.left == cx && rect.bottom - rect.top == cy) ||
IsIconic(hwnd) ||
(IsRectEmpty( &rect ) && cx == 1 && cy == 1))
(IsRectEmpty( &rect ) && event->width == 1 && event->height == 1))
{
if (flags & SWP_NOMOVE) return; /* if nothing changed, don't do anything */
flags |= SWP_NOSIZE;