hi winehq!

    When I was debugging an application, I noticed that you had added patch for new_surface:

    85f81948de1d7fe6d6d16f681a3a7cf8c08a566f,    6ccb94392a8ef4bca701ae2a560f4ea1da677edd


They cause bugs with the following window refresh:

    1. Dragging the window edge to scale the window will cause a window top toolbar refresh error.

    2. Changing the window size also causes a window top toolbar refresh error.

    3. Open the image with the app. The first image will be incomplete.

    4. Window showing a transparent background whose background has not been drawn.


After trying to modify the conditions of new_surface, I was able to fix most of the bugs, but not the root of the problem.

At the moment I can only revert these issues by removing the relevant patches.


user32/winpos.c/set_window_pos

if (!EqualRect( window_rect, &visible_rect ) || new_surface || valid_rects)
{
    if (new_surface && swp_flags & SWP_FRAMECHANGED)
    {
        extra_rects[1] = new_surface->rect;
        OffsetRect( &extra_rects[1], visible_rect.left, visible_rect.top );
    }
    if (valid_rects) extra_rects[2] = valid_rects[0];
    else SetRectEmpty( &extra_rects[2] );
    wine_server_add_data( req, extra_rects, sizeof(extra_rects) );
}



������������������������������

UnionTech Software Technology Co., Ltd. ���

���������www.uniontech.com������

���������+86-10-62669253


���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

This email message is intended only for the use of the individual or entity who/which is the intended recipient and may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of, or taking any action in reliance on, this e-mail is strictly prohibited. If you have received this email in error, please notify UnionTech Software Technology  immediately by replying to this e-mail and immediately delete and discard all copies of the e-mail and the attachment thereto (if any). Thank you.