diff --git a/src/cascadia/TerminalControl/TermControl.cpp b/src/cascadia/TerminalControl/TermControl.cpp index cce85bddcc5..92f38d2db01 100644 --- a/src/cascadia/TerminalControl/TermControl.cpp +++ b/src/cascadia/TerminalControl/TermControl.cpp @@ -874,8 +874,8 @@ namespace winrt::Microsoft::Terminal::Control::implementation // _cursorTimer doesn't exist, and it would never turn on the // cursor. To mitigate, we'll initialize the cursor's 'on' state // with `_focused` here. - _core.CursorOn(_focused || DisplayCursorWhileBlurred); - if (DisplayCursorWhileBlurred) + _core.CursorOn(_focused || _DisplayCursorWhileBlurred); + if (_DisplayCursorWhileBlurred) { _cursorTimer->Start(); } @@ -1753,7 +1753,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation TSFInputControl().NotifyFocusLeave(); } - if (_cursorTimer && !DisplayCursorWhileBlurred) + if (_cursorTimer && !_DisplayCursorWhileBlurred) { _cursorTimer->Stop(); _core.CursorOn(false); diff --git a/src/cascadia/TerminalControl/TermControl.h b/src/cascadia/TerminalControl/TermControl.h index d6037c72097..301dd83c873 100644 --- a/src/cascadia/TerminalControl/TermControl.h +++ b/src/cascadia/TerminalControl/TermControl.h @@ -164,9 +164,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation // clang-format on WINRT_OBSERVABLE_PROPERTY(winrt::Windows::UI::Xaml::Media::Brush, BackgroundBrush, _PropertyChangedHandlers, nullptr); - - public: - til::property DisplayCursorWhileBlurred{ false }; + WINRT_PROPERTY(bool, DisplayCursorWhileBlurred, false); private: friend struct TermControlT; // friend our parent so it can bind private event handlers