LibGUI: Implement set_max_size

I already support set_min_size so why not this :)
This commit is contained in:
2025-06-25 13:31:54 +03:00
parent 85f200bd86
commit bbb490b24f
7 changed files with 58 additions and 2 deletions

View File

@@ -379,6 +379,10 @@ int main()
if (auto ret = LibGUI::WindowPacket::WindowSetMinSize::deserialize(client_data.packet_buffer.span()); !ret.is_error())
window_server.on_window_set_min_size(fd, ret.release_value());
break;
case LibGUI::PacketType::WindowSetMaxSize:
if (auto ret = LibGUI::WindowPacket::WindowSetMaxSize::deserialize(client_data.packet_buffer.span()); !ret.is_error())
window_server.on_window_set_max_size(fd, ret.release_value());
break;
case LibGUI::PacketType::WindowSetFullscreen:
if (auto ret = LibGUI::WindowPacket::WindowSetFullscreen::deserialize(client_data.packet_buffer.span()); !ret.is_error())
window_server.on_window_set_fullscreen(fd, ret.release_value());