Skip to content

Commit 20c1d56

Browse files
zadjii-msftDHowett
authored andcommitted
Fix focusFollowMouse (#15420)
Because this looks like it's entirely broken in `main`, and possibly in 1.17(?) We didn't take a strong ref to the coroutine parameter. As to be expected, that explodes. Closes #15412 (cherry picked from commit 6775300) Service-Card-Id: 89311372 Service-Version: 1.17
1 parent 770af0a commit 20c1d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cascadia/TerminalApp/TerminalTab.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ namespace winrt::TerminalApp::implementation
946946
}
947947
});
948948

949-
events.focusToken = control.FocusFollowMouseRequested([dispatcher, weakThis](auto&& sender, auto&&) -> winrt::fire_and_forget {
949+
events.focusToken = control.FocusFollowMouseRequested([dispatcher, weakThis](auto sender, auto) -> winrt::fire_and_forget {
950950
co_await wil::resume_foreground(dispatcher);
951951
if (const auto tab{ weakThis.get() })
952952
{

0 commit comments

Comments
 (0)