Fix maximize minimize button hover problem
This commit is contained in:
parent
a0f7751d0a
commit
0816d1cdd2
|
@ -1049,7 +1049,9 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
|
||||||
|| (currentWindowPart == WindowPart::FixedBorder))) {
|
|| (currentWindowPart == WindowPart::FixedBorder))) {
|
||||||
emulateClientAreaMessage(WM_NCMOUSELEAVE);
|
emulateClientAreaMessage(WM_NCMOUSELEAVE);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
// We need to make sure we get the correct window part when a WM_NCMOUSELEAVE come,
|
// 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.
|
// 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();
|
hitTestResult.second.reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentWindowPart == WindowPart::ChromeButton) {
|
if (currentWindowPart == WindowPart::ChromeButton) {
|
||||||
emulateClientAreaMessage();
|
emulateClientAreaMessage();
|
||||||
if (uMsg == WM_NCMOUSEMOVE) {
|
if (uMsg == WM_NCMOUSEMOVE) {
|
||||||
|
|
Loading…
Reference in New Issue