mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-27 01:40:16 -05:00
render: don’t center content while we’re being resized
Doing so causes the content to jump around while interactively resizing the window.
This commit is contained in:
parent
4ebd58e388
commit
3948145d66
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -2671,7 +2671,7 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
|
|||
const int total_x_pad = term->width - grid_width;
|
||||
const int total_y_pad = term->height - grid_height;
|
||||
|
||||
if (term->conf->center) {
|
||||
if (term->conf->center && !term->window->is_resizing) {
|
||||
term->margins.left = total_x_pad / 2;
|
||||
term->margins.top = total_y_pad / 2;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue