mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
WindowServer: Close any open menus when starting window move/resize
This commit is contained in:
parent
396ff6401f
commit
1ee31981da
1 changed files with 4 additions and 0 deletions
|
@ -471,6 +471,8 @@ bool WindowManager::pick_new_active_window(Window* previous_active)
|
|||
|
||||
void WindowManager::start_window_move(Window& window, const MouseEvent& event)
|
||||
{
|
||||
MenuManager::the().close_everyone();
|
||||
|
||||
dbgln_if(MOVE_DEBUG, "[WM] Begin moving Window({})", &window);
|
||||
|
||||
move_to_front_and_make_active(window);
|
||||
|
@ -483,6 +485,8 @@ void WindowManager::start_window_move(Window& window, const MouseEvent& event)
|
|||
|
||||
void WindowManager::start_window_resize(Window& window, const Gfx::IntPoint& position, MouseButton button)
|
||||
{
|
||||
MenuManager::the().close_everyone();
|
||||
|
||||
move_to_front_and_make_active(window);
|
||||
constexpr ResizeDirection direction_for_hot_area[3][3] = {
|
||||
{ ResizeDirection::UpLeft, ResizeDirection::Up, ResizeDirection::UpRight },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue