mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
WindowServer: Ignore other button presses while moving/resizing windows
Fixes #5334
This commit is contained in:
parent
6af4d35e8e
commit
06ee8c5aa8
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue