Skip to content

Commit

Permalink
CUIWindow: make m_pKeyboardCapturer nullptr when calling Reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 18, 2025
1 parent 6b77aed commit db86e89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/xrUICore/Windows/UIWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,12 @@ CUIWindow* CUIWindow::GetChildMouseHandler()
}

//для перевода окна и потомков в исходное состояние
void CUIWindow::Reset() { m_pMouseCapturer = NULL; }
void CUIWindow::Reset()
{
m_pMouseCapturer = nullptr;
m_pKeyboardCapturer = nullptr;
}

void CUIWindow::ResetAll()
{
for (auto it = m_ChildWndList.begin(); m_ChildWndList.end() != it; ++it)
Expand Down

0 comments on commit db86e89

Please sign in to comment.