Commit 9628a781 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

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

recognize a zero sized window in the ConfigureNotify handler.
parent cfccc16d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment