Fix maximize minimize button hover problem

This commit is contained in:
Sine Striker 2023-08-26 04:40:42 +08:00
parent a0f7751d0a
commit 0816d1cdd2
1 changed files with 4 additions and 1 deletions

View File

@ -1049,7 +1049,9 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
|| (currentWindowPart == WindowPart::FixedBorder))) {
emulateClientAreaMessage(WM_NCMOUSELEAVE);
}
}
{
// We need to make sure we get the correct window part when a WM_NCMOUSELEAVE come,
// so we reset current window part to null when we receive a WM_NCMOUSEMOVE.
@ -1062,6 +1064,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
hitTestResult.second.reset();
}
}
if (currentWindowPart == WindowPart::ChromeButton) {
emulateClientAreaMessage();
if (uMsg == WM_NCMOUSEMOVE) {