From 51c2013bae5056515f0dbeaf0e861b0c0818da9f Mon Sep 17 00:00:00 2001 From: Bruno Van de Velde Date: Mon, 20 May 2024 10:46:08 +0200 Subject: [PATCH] WindowFocus signal was being triggered on unfocus instead of on focus --- src/Backend/Window/BackendGui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Backend/Window/BackendGui.cpp b/src/Backend/Window/BackendGui.cpp index f3920dfda..7898b10a9 100644 --- a/src/Backend/Window/BackendGui.cpp +++ b/src/Backend/Window/BackendGui.cpp @@ -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: