summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/Screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/WindowServer/Screen.cpp')
-rw-r--r--Userland/Services/WindowServer/Screen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Services/WindowServer/Screen.cpp b/Userland/Services/WindowServer/Screen.cpp
index faa44d96c1..62d20ca56b 100644
--- a/Userland/Services/WindowServer/Screen.cpp
+++ b/Userland/Services/WindowServer/Screen.cpp
@@ -43,7 +43,7 @@ Screen& ScreenInput::cursor_location_screen()
return *screen;
}
-const Screen& ScreenInput::cursor_location_screen() const
+Screen const& ScreenInput::cursor_location_screen() const
{
auto* screen = Screen::find_by_location(m_cursor_location);
VERIFY(screen);
@@ -271,7 +271,7 @@ void Screen::scale_factor_changed()
constrain_pending_flush_rects();
}
-Screen& Screen::closest_to_rect(const Gfx::IntRect& rect)
+Screen& Screen::closest_to_rect(Gfx::IntRect const& rect)
{
Screen* best_screen = nullptr;
int best_area = 0;
@@ -290,7 +290,7 @@ Screen& Screen::closest_to_rect(const Gfx::IntRect& rect)
return *best_screen;
}
-Screen& Screen::closest_to_location(const Gfx::IntPoint& point)
+Screen& Screen::closest_to_location(Gfx::IntPoint const& point)
{
for (auto& screen : s_screens) {
if (screen.rect().contains(point))
@@ -421,7 +421,7 @@ void ScreenInput::set_scroll_step_size(unsigned step_size)
m_scroll_step_size = step_size;
}
-void ScreenInput::on_receive_mouse_data(const MousePacket& packet)
+void ScreenInput::on_receive_mouse_data(MousePacket const& packet)
{
auto& current_screen = cursor_location_screen();
auto prev_location = m_cursor_location;