server: Don't trigger repaints on position changes for layered windows.

This commit is contained in:
Alexandre Julliard 2012-09-13 13:47:03 +02:00
parent 0682355af2
commit 84fd7de0f7
1 changed files with 3 additions and 0 deletions

View File

@ -2136,6 +2136,9 @@ DECL_HANDLER(set_window_pos)
if (previous == win) flags |= SWP_NOZORDER; /* nothing to do */
}
/* windows that use UpdateLayeredWindow don't trigger repaints */
if ((win->ex_style & WS_EX_LAYERED) && !win->is_layered) flags |= SWP_NOREDRAW;
/* window rectangle must be ordered properly */
if (req->window.right < req->window.left || req->window.bottom < req->window.top)
{