|
@@ -424,6 +424,17 @@ OwnPtr<Messages::WindowServer::GetWindowRectResponse> ClientConnection::handle(c
|
|
|
return make<Messages::WindowServer::GetWindowRectResponse>(it->value->rect());
|
|
|
}
|
|
|
|
|
|
+OwnPtr<Messages::WindowServer::GetWindowRectInMenubarResponse> ClientConnection::handle(const Messages::WindowServer::GetWindowRectInMenubar& message)
|
|
|
+{
|
|
|
+ int window_id = message.window_id();
|
|
|
+ auto it = m_windows.find(window_id);
|
|
|
+ if (it == m_windows.end()) {
|
|
|
+ did_misbehave("GetWindowRectInMenubar: Bad window ID");
|
|
|
+ return nullptr;
|
|
|
+ }
|
|
|
+ return make<Messages::WindowServer::GetWindowRectInMenubarResponse>(it->value->rect_in_menubar());
|
|
|
+}
|
|
|
+
|
|
|
Window* ClientConnection::window_from_id(i32 window_id)
|
|
|
{
|
|
|
auto it = m_windows.find(window_id);
|