mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
WindowServer: Simplify handling of the window resize candidate
Always clear the current resize candidate when starting new mouse event processing (instead of trying to be smart about it.)
This commit is contained in:
parent
b5251a70c6
commit
1537172a6b
2 changed files with 4 additions and 7 deletions
|
@ -682,7 +682,6 @@ bool WindowFrame::handle_titlebar_icon_mouse_event(MouseEvent const& event)
|
|||
void WindowFrame::handle_titlebar_mouse_event(MouseEvent const& event)
|
||||
{
|
||||
auto& wm = WindowManager::the();
|
||||
wm.clear_resize_candidate();
|
||||
|
||||
if (titlebar_icon_rect().contains(event.position())) {
|
||||
if (handle_titlebar_icon_mouse_event(event))
|
||||
|
@ -733,7 +732,6 @@ void WindowFrame::handle_mouse_event(MouseEvent const& event)
|
|||
}
|
||||
|
||||
if (menubar_rect().contains(event.position())) {
|
||||
wm.clear_resize_candidate();
|
||||
handle_menubar_mouse_event(event);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue