Skip to content

Commit

Permalink
WindowFocus signal was being triggered on unfocus instead of on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed May 20, 2024
1 parent a4fb753 commit 51c2013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Backend/Window/BackendGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ namespace tgui
case Event::Type::LostFocus:
{
m_windowFocused = false;
onWindowFocus.emit(m_container.get());
onWindowUnfocus.emit(m_container.get());
break;
}
case Event::Type::GainedFocus:
{
m_windowFocused = true;
onWindowUnfocus.emit(m_container.get());
onWindowFocus.emit(m_container.get());
break;
}
case Event::Type::Resized:
Expand Down

0 comments on commit 51c2013

Please sign in to comment.