mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 15:47:35 +00:00
LibGUI/WindowServer: Add set_maximized IPC call
Add an IPC call to enable the client to manually maximize it's own window.
This commit is contained in:
parent
a00d154522
commit
2f7dc29ab7
5 changed files with 18 additions and 0 deletions
|
@ -332,6 +332,16 @@ Messages::WindowServer::IsMaximizedResponse ClientConnection::is_maximized(i32 w
|
|||
return it->value->is_maximized();
|
||||
}
|
||||
|
||||
void ClientConnection::set_maximized(i32 window_id, bool maximized)
|
||||
{
|
||||
auto it = m_windows.find(window_id);
|
||||
if (it == m_windows.end()) {
|
||||
did_misbehave("SetMaximized: Bad window ID");
|
||||
return;
|
||||
}
|
||||
it->value->set_maximized(maximized);
|
||||
}
|
||||
|
||||
void ClientConnection::set_window_icon_bitmap(i32 window_id, Gfx::ShareableBitmap const& icon)
|
||||
{
|
||||
auto it = m_windows.find(window_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue