Commit a2ae9829 authored by Alexandre Julliard's avatar Alexandre Julliard

Ignore size change on ConfigureNotify if window rect is empty and new

size is 1x1.
parent 0d92fe20
......@@ -1416,8 +1416,9 @@ void X11DRV_ConfigureNotify( HWND hwnd, XConfigureEvent *event )
TRACE( "%04x moving from (%d,%d) to (%d,%d)\n",
hwnd, rect.left, rect.top, winpos.x, winpos.y );
if (rect.right - rect.left == winpos.cx &&
rect.bottom - rect.top == winpos.cy) winpos.flags |= SWP_NOSIZE;
if ((rect.right - rect.left == winpos.cx && rect.bottom - rect.top == winpos.cy) ||
(IsRectEmpty( &rect ) && winpos.cx == 1 && winpos.cy == 1))
winpos.flags |= SWP_NOSIZE;
else
TRACE( "%04x resizing from (%dx%d) to (%dx%d)\n",
hwnd, rect.right - rect.left, rect.bottom - rect.top,
......
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