WindowServer: Oops, forgot to plumb through the base size for incresize.

This commit is contained in:
Andreas Kling 2019-02-21 10:11:12 +01:00
parent 6084cd0c56
commit 16cd4585cd
Notes: sideshowbarker 2024-07-19 15:39:19 +09:00
3 changed files with 3 additions and 2 deletions

View file

@ -798,5 +798,5 @@ void Terminal::resize_event(GResizeEvent& event)
void Terminal::apply_size_increments_to_window(GWindow& window)
{
window.set_size_increment({ font().glyph_width(), m_line_height });
window.set_base_size({ m_inset, m_inset });
window.set_base_size({ m_inset * 2, m_inset * 2});
}

View file

@ -320,6 +320,7 @@ void WSClientConnection::handle_request(WSAPICreateWindowRequest& request)
window->set_rect(request.rect());
window->set_opacity(request.opacity());
window->set_size_increment(request.size_increment());
window->set_base_size(request.base_size());
m_windows.set(window_id, move(window));
WSAPI_ServerMessage response;
response.type = WSAPI_ServerMessage::Type::DidCreateWindow;

View file

@ -355,8 +355,8 @@ public:
, m_title(title)
, m_opacity(opacity)
, m_has_alpha_channel(has_alpha_channel)
, m_base_size(base_size)
, m_size_increment(size_increment)
, m_base_size(base_size)
{
}