summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2019-06-15 21:53:25 +0100
committerfaissaloo <faissaloo@gmail.com>2019-06-15 21:53:25 +0100
commit50fd9ed38383d0d28180a556ec9300823aaeb490 (patch)
tree3f568b6eedbbf34755ab41476bbe7276ee5138ce
parent6e0e9481a4b01c7bc69ebf18ff86daa71f1f0b44 (diff)
downloadserenity-50fd9ed38383d0d28180a556ec9300823aaeb490.zip
GWindow: Hide SerenityKeys when window is deselected
-rw-r--r--LibGUI/GWindow.cpp5
1 files changed, 5 insertions, 0 deletions
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);