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
Notes: sideshowbarker 2024-07-19 13:35:44 +09:00

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