mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03: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
Notes:
sideshowbarker
2024-07-18 12:04:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/58823c474e0
@ -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…
Reference in New Issue
Block a user