fix(pty): emit size_changed if forcing size update

Ensures that connected PTY is resized correctly on scene start.
This commit is contained in:
Leroy Hopson 2024-04-14 12:27:44 +12:00
parent 5c151c3244
commit a5951978f7
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -451,7 +451,7 @@ void Terminal::update_sizes(bool force)
update_shader_parameters(back_material);
update_shader_parameters(fore_material);
if (prev_cols != cols || prev_rows != rows)
if (force || prev_cols != cols || prev_rows != rows)
emit_signal("size_changed", Vector2i(cols, rows));
refresh();