render: don't update last 'un-maximized' size when in fullscreen

This commit is contained in:
Daniel Eklöf 2020-02-29 17:25:08 +01:00
parent d6f0a47fb8
commit 9264e1e5bd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1346,7 +1346,7 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
term->render.last_cursor.cell = NULL;
damage_view:
if (!term->window->is_maximized) {
if (!term->window->is_maximized && !term->window->is_fullscreen) {
term->unmaximized_width = term->width;
term->unmaximized_height = term->height;
}