Dmitry Timoshkov dmitry@baikal.ru writes:
SetWindowPos(SWP_FRAMECHANGED) causes the whole nonclient window area to be repainted.
Also, according to the tests Windows always repaints windows before SetWindowPos has finished.
This patch reduces number of message test failures from 56 to 47.
The message order is wrong because we rely on X expose events to repaint the window. This is one of the reasons we need to go back to not using X windows for every window; but until that is done, your fix is going to cause every window to be repainted twice.