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:
Andreas Kling 2021-06-18 12:47:25 +02:00
parent 82a945fa7e
commit 58823c474e
Notes: sideshowbarker 2024-07-18 12:04:46 +09:00

View file

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