fix: minimize button remaining hovered on Windows (#5175)

This commit is contained in:
nerix
2024-02-14 14:49:31 +01:00
committed by GitHub
parent fe1e498a5f
commit 4a5d4ef3fa
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -962,6 +962,13 @@ bool BaseWindow::handleSIZE(MSG *msg)
QPoint(rect.right - 1, rect.bottom - 1));
}
this->useNextBounds_.stop();
if (msg->wParam == SIZE_MINIMIZED && this->ui_.titlebarButtons)
{
// Windows doesn't send a WM_NCMOUSELEAVE event when clicking
// the minimize button, so we have to emulate it.
this->ui_.titlebarButtons->leave();
}
}
}
return false;