From 50fd9ed38383d0d28180a556ec9300823aaeb490 Mon Sep 17 00:00:00 2001 From: faissaloo Date: Sat, 15 Jun 2019 21:53:25 +0100 Subject: [PATCH] GWindow: Hide SerenityKeys when window is deselected --- LibGUI/GWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp index 284ce123b6..a84d55a0ed 100644 --- a/LibGUI/GWindow.cpp +++ b/LibGUI/GWindow.cpp @@ -296,6 +296,11 @@ void GWindow::event(CEvent& event) } if (event.type() == GEvent::WindowBecameActive || event.type() == GEvent::WindowBecameInactive) { + if (event.type() == GEvent::WindowBecameInactive && m_keybind_mode) { + m_keybind_mode = false; + update(); + } + m_is_active = event.type() == GEvent::WindowBecameActive; if (m_main_widget) m_main_widget->event(event);