mirror of
https://github.com/reactos/wine.git
synced 2025-02-20 12:50:53 +00:00
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:
parent
cfccc16d96
commit
9628a781bf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user