mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-25 14:04:02 +00:00
WindowServer: Add a new IsMaximized message
New message to query window maximized state.
This commit is contained in:
committed by
Andreas Kling
parent
5bd0015583
commit
5950736efa
@@ -361,6 +361,16 @@ OwnPtr<Messages::WindowServer::GetWindowTitleResponse> ClientConnection::handle(
|
||||
return make<Messages::WindowServer::GetWindowTitleResponse>(it->value->title());
|
||||
}
|
||||
|
||||
OwnPtr<Messages::WindowServer::IsMaximizedResponse> ClientConnection::handle(const Messages::WindowServer::IsMaximized& message)
|
||||
{
|
||||
auto it = m_windows.find(message.window_id());
|
||||
if (it == m_windows.end()) {
|
||||
did_misbehave("IsMaximized: Bad window ID");
|
||||
return nullptr;
|
||||
}
|
||||
return make<Messages::WindowServer::IsMaximizedResponse>(it->value->is_minimized());
|
||||
}
|
||||
|
||||
OwnPtr<Messages::WindowServer::SetWindowIconBitmapResponse> ClientConnection::handle(const Messages::WindowServer::SetWindowIconBitmap& message)
|
||||
{
|
||||
auto it = m_windows.find(message.window_id());
|
||||
|
||||
Reference in New Issue
Block a user