1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 04:17:34 +00:00

GWindow: Hide SerenityKeys when window is deselected

This commit is contained in:
faissaloo 2019-06-15 21:53:25 +01:00
parent 6e0e9481a4
commit 50fd9ed383

View file

@ -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);