mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WindowServer: Oops, forgot to plumb through the base size for incresize.
This commit is contained in:
parent
6084cd0c56
commit
16cd4585cd
Notes:
sideshowbarker
2024-07-19 15:39:19 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/16cd4585cd4
3 changed files with 3 additions and 2 deletions
|
@ -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});
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue