mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
GWindow: Hide SerenityKeys when window is deselected
This commit is contained in:
parent
6e0e9481a4
commit
50fd9ed383
1 changed files with 5 additions and 0 deletions
|
@ -296,6 +296,11 @@ void GWindow::event(CEvent& event)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.type() == GEvent::WindowBecameActive || event.type() == GEvent::WindowBecameInactive) {
|
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;
|
m_is_active = event.type() == GEvent::WindowBecameActive;
|
||||||
if (m_main_widget)
|
if (m_main_widget)
|
||||||
m_main_widget->event(event);
|
m_main_widget->event(event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue