mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
WindowServer: Don't let super key open system menu while tracking input
Previously it was possible to open the system menu while tracking mouse input after a mousedown event.
This commit is contained in:
parent
82a945fa7e
commit
58823c474e
1 changed files with 1 additions and 1 deletions
|
@ -1194,7 +1194,7 @@ void WindowManager::event(Core::Event& event)
|
|||
m_previous_event_was_super_keydown = true;
|
||||
} else if (m_previous_event_was_super_keydown) {
|
||||
m_previous_event_was_super_keydown = false;
|
||||
if (!m_dnd_client && key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
|
||||
if (!m_dnd_client && !m_active_input_tracking_window && key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
|
||||
tell_wms_super_key_pressed();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue