diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-10 14:40:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-26 18:32:06 +0000 |
| commit | 3948145d66892d7055f47ace9ed6474344b5c119 (patch) | |
| tree | 7f833461c784c15a0e40fd5034cbb8a03b4013e9 /render.c | |
| parent | wayland: track is-resizing state (diff) | |
render: don’t center content while we’re being resized
Doing so causes the content to jump around while interactively
resizing the window.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |
