Skip to content
Snippets Groups Projects
Commit 6975cf42 authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Marius Vlad
Browse files

terminal: Avoid too large character grid when resized


When resizing the terminal, the row/columns would end up potentially too tall
and/or wide, meaning the widget would grow each time the window was configured
with a size.

Fix this by making sure the calculated rows and columns don't loose too much
precision, and if they do, shrink instead of grow, as that is expected by the
xdg_toplevel configure event.

Signed-off-by: default avatarJonas Ådahl <jadahl@gmail.com>
parent d4fe0a42
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment