summaryrefslogtreecommitdiff
path: root/Services/WindowServer/ClientConnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Services/WindowServer/ClientConnection.cpp')
-rw-r--r--Services/WindowServer/ClientConnection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Services/WindowServer/ClientConnection.cpp b/Services/WindowServer/ClientConnection.cpp
index 51d645d578..c533d851dc 100644
--- a/Services/WindowServer/ClientConnection.cpp
+++ b/Services/WindowServer/ClientConnection.cpp
@@ -49,12 +49,12 @@ namespace WindowServer {
HashMap<int, NonnullRefPtr<ClientConnection>>* s_connections;
-static Gfx::Rect normalize_window_rect(Gfx::Rect rect, WindowType window_type)
+static Gfx::IntRect normalize_window_rect(Gfx::IntRect rect, WindowType window_type)
{
auto min_size = 1;
if (window_type == WindowType::Normal)
min_size = 50;
- Gfx::Rect normalized_rect = { rect.x(), rect.y(), max(rect.width(), min_size), max(rect.height(), min_size) };
+ Gfx::IntRect normalized_rect = { rect.x(), rect.y(), max(rect.width(), min_size), max(rect.height(), min_size) };
return normalized_rect;
}
@@ -106,7 +106,7 @@ void ClientConnection::die()
});
}
-void ClientConnection::notify_about_new_screen_rect(const Gfx::Rect& rect)
+void ClientConnection::notify_about_new_screen_rect(const Gfx::IntRect& rect)
{
post_message(Messages::WindowClient::ScreenRectChanged(rect));
}