mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-04 01:05:58 +03:00
WindowServer: Ignore other button presses while moving/resizing windows
Fixes #5334
This commit is contained in:
parent
6af4d35e8e
commit
06ee8c5aa8
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/06ee8c5aa86 Pull-request: https://github.com/SerenityOS/serenity/pull/5397 Issue: https://github.com/SerenityOS/serenity/issues/5334
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user