Skip to content

Commit

Permalink
suppress the resize handle on the top
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Apr 9, 2021
1 parent 2db7fd5 commit 04a4249
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ int NonClientIslandWindow::_GetResizeHandleHeight() const noexcept
if (originalRet != HTCLIENT)
{
// If we're the quake window, supress resizing on any side except the
// bottom.
// TODO! This doesn't actually work on the top. I believe that's handled below.
// bottom. I don't believe that this actually works on the top. That's
// handled below.
//
// TODO! Make sure that this works for the IslandWindow as well.
if (IsQuakeWindow())
Expand Down Expand Up @@ -570,7 +570,9 @@ int NonClientIslandWindow::_GetResizeHandleHeight() const noexcept
// the top of the drag bar is used to resize the window
if (!_isMaximized && isOnResizeBorder)
{
return HTTOP;
// However, if we're the quake window, then just return HTCAPTION so we
// don't get a resize handle on the top.
return IsQuakeWindow() ? HTCAPTION : HTTOP;
}

return HTCAPTION;
Expand Down

0 comments on commit 04a4249

Please sign in to comment.