From fbdf3dafaa7dcc69e3d3cdd177004697ea2648f2 Mon Sep 17 00:00:00 2001 From: dsa-t <dudesuchamazing@gmail.com> Date: Mon, 22 Jul 2024 10:35:19 +0000 Subject: [PATCH] Hide notification panel on focus loss. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17295 (cherry picked from commit 7e115249af91cf833597c8a21159f1d03b159d85) Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com> --- common/notifications_manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/notifications_manager.cpp b/common/notifications_manager.cpp index 2f792ce5b0..a3561d7aeb 100644 --- a/common/notifications_manager.cpp +++ b/common/notifications_manager.cpp @@ -178,6 +178,7 @@ public: m_contentSizer->Add( m_noNotificationsText, 1, wxALL | wxEXPAND, 5 ); Bind( wxEVT_KILL_FOCUS, &NOTIFICATIONS_LIST::onFocusLoss, this ); + m_scrolledWindow->Bind( wxEVT_KILL_FOCUS, &NOTIFICATIONS_LIST::onFocusLoss, this ); SetSizer( bSizer1 ); Layout();