1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 07:07:34 +00:00

WindowServer: Move "automatic cursor tracking window" to WindowManager

It didn't make sense for this to be a per-WindowStack concept, since
automatic cursor tracking is globally modal.
This commit is contained in:
Andreas Kling 2022-08-15 22:39:36 +02:00
parent add4f42d21
commit 296e68fdbf
4 changed files with 17 additions and 22 deletions

View file

@ -40,8 +40,6 @@ void WindowStack::remove(Window& window)
m_active_window = nullptr;
if (m_active_input_window == &window)
m_active_input_window = nullptr;
if (m_automatic_cursor_tracking_window == &window)
m_automatic_cursor_tracking_window = nullptr;
}
void WindowStack::move_to_front(Window& window)
@ -102,7 +100,6 @@ void WindowStack::move_all_windows(WindowStack& new_window_stack, Vector<Window*
}
m_active_window = nullptr;
m_active_input_window = nullptr;
m_automatic_cursor_tracking_window = nullptr;
}
Window* WindowStack::window_at(Gfx::IntPoint const& position, IncludeWindowFrame include_window_frame) const