Fix the flickering problem.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2020-10-13 20:30:24 +08:00
parent a7a6dd185c
commit eb1c189c0f
1 changed files with 6 additions and 0 deletions

View File

@ -1462,6 +1462,12 @@ bool WinNativeEventFilter::nativeEventFilter(const QByteArray &eventType,
if (shouldHaveWindowFrame()) {
*result = 0;
}
if (!shouldHaveWindowFrame() && !IsFullScreen(msg->hwnd) && !IsMaximized(msg->hwnd)
&& !IsMinimized(msg->hwnd)) {
// Fix the flickering problem when resizing.
clientRect->bottom -= 1;
//*result = 0;
}
return true;
}
// These undocumented messages are sent to draw themed window