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 6775300f42)
Service-Card-Id: 89311372
Service-Version: 1.17
This commit is contained in:
Mike Griese 2023-05-25 15:25:10 -05:00 committed by Dustin L. Howett
parent 770af0ae1b
commit 20c1d563fc
1 changed files with 1 additions and 1 deletions

View File

@ -946,7 +946,7 @@ namespace winrt::TerminalApp::implementation
}
});
events.focusToken = control.FocusFollowMouseRequested([dispatcher, weakThis](auto&& sender, auto&&) -> winrt::fire_and_forget {
events.focusToken = control.FocusFollowMouseRequested([dispatcher, weakThis](auto sender, auto) -> winrt::fire_and_forget {
co_await wil::resume_foreground(dispatcher);
if (const auto tab{ weakThis.get() })
{