Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/cascadia/WindowsTerminal/IslandWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,15 @@ void IslandWindow::_OnGetMinMaxInfo(const WPARAM /*wParam*/, const LPARAM lParam
const bool activated = LOWORD(wparam) != 0;
WindowActivated.raise(activated);

// GH#18662: After raising WindowActivated, XAML may be busy processing
// the activation (focus, layout, rendering). During this time, WM_SETCURSOR
// may go unanswered, causing Windows to show a busy cursor until the next
// mouse move. Post a WM_SETCURSOR to force re-evaluation once XAML is idle.
if (activated)
{
PostMessageW(GetHandle(), WM_SETCURSOR, 0, MAKELPARAM(HTCLIENT, WM_MOUSEMOVE));
}

if (_autoHideWindow && !activated)
{
if (_isQuakeWindow || _minimizeToNotificationArea)
Expand Down
Loading