diff options
author | Tom <tomut@yahoo.com> | 2021-02-17 21:15:01 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-18 07:45:44 +0100 |
commit | 06ee8c5aa8672e0f7ecf0da74000594ac6f8fe7e (patch) | |
tree | 8f91c7a77071af60f1290d2c38d84b67190bf0d6 | |
parent | 6af4d35e8e62b21ad1332a787e46a9082ad77e63 (diff) | |
download | serenity-06ee8c5aa8672e0f7ecf0da74000594ac6f8fe7e.zip |
WindowServer: Ignore other button presses while moving/resizing windows
Fixes #5334
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index 1d44f1dade..dc7fb82819 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -575,9 +575,8 @@ bool WindowManager::process_ongoing_window_move(MouseEvent& event, Window*& hove } if (m_move_window->rect().contains(event.position())) hovered_window = m_move_window; - return true; } - return false; + return true; } bool WindowManager::process_ongoing_window_resize(const MouseEvent& event, Window*& hovered_window) @@ -607,7 +606,7 @@ bool WindowManager::process_ongoing_window_resize(const MouseEvent& event, Windo } if (event.type() != Event::MouseMove) - return false; + return true; int diff_x = event.x() - m_resize_origin.x(); int diff_y = event.y() - m_resize_origin.y(); |