Fix the flickering problem.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
a7a6dd185c
commit
eb1c189c0f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue