mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Meta+Userland: Pass Gfx::IntPoint by value
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
This commit is contained in:
parent
bbc149ebb9
commit
7be0b27dd3
161 changed files with 442 additions and 441 deletions
|
@ -99,7 +99,7 @@ void WindowStack::move_all_windows(WindowStack& new_window_stack, Vector<Window*
|
|||
m_active_window = nullptr;
|
||||
}
|
||||
|
||||
Window* WindowStack::window_at(Gfx::IntPoint const& position, IncludeWindowFrame include_window_frame) const
|
||||
Window* WindowStack::window_at(Gfx::IntPoint position, IncludeWindowFrame include_window_frame) const
|
||||
{
|
||||
auto result = hit_test(position);
|
||||
if (!result.has_value())
|
||||
|
@ -132,7 +132,7 @@ void WindowStack::set_all_occluded(bool occluded)
|
|||
}
|
||||
}
|
||||
|
||||
Optional<HitTestResult> WindowStack::hit_test(Gfx::IntPoint const& position) const
|
||||
Optional<HitTestResult> WindowStack::hit_test(Gfx::IntPoint position) const
|
||||
{
|
||||
Optional<HitTestResult> result;
|
||||
WindowManager::the().for_each_visible_window_from_front_to_back([&](Window& window) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue