WindowServer/LibGUI: Allow windows to set minimum size

This commit is contained in:
2025-05-05 18:19:59 +03:00
parent 3b02a9d4fe
commit 5c37f198cb
7 changed files with 52 additions and 2 deletions

View File

@@ -306,6 +306,16 @@ namespace LibGUI
return on_socket_error(__FUNCTION__);
}
void Window::set_min_size(uint32_t width, uint32_t height)
{
WindowPacket::WindowSetMinSize packet;
packet.width = width;
packet.height = height;
if (auto ret = packet.send_serialized(m_server_fd); ret.is_error())
return on_socket_error(__FUNCTION__);
}
void Window::set_attributes(Attributes attributes)
{
WindowPacket::WindowSetAttributes packet;