This is closer to releasing the buttons when we're not over them, but moving the mouse fast still leaves them hovered.

This commit is contained in:
Mike Griese 2021-11-03 10:48:12 -05:00
parent be38330ddf
commit 939177bdab

View file

@ -654,6 +654,9 @@ int NonClientIslandWindow::_GetResizeHandleHeight() const noexcept
// we didn't change them.
LPARAM lParam = MAKELONG(ptMouse.x, ptMouse.y);
const auto originalRet = DefWindowProc(_window.get(), WM_NCHITTEST, 0, lParam);
_titlebar.ReleaseButton(winrt::TerminalApp::CaptionButton::Close);
if (originalRet != HTCLIENT)
{
// If we're the quake window, suppress resizing on any side except the