mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
term: init: don't resize if compositor has already resized us
This commit is contained in:
parent
782da0f8e9
commit
ef3c7d7e0a
1 changed files with 16 additions and 13 deletions
|
|
@ -665,6 +665,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
|
||||||
|
|
||||||
term_set_window_title(term, "foot");
|
term_set_window_title(term, "foot");
|
||||||
|
|
||||||
|
if (term->width == 0 && term->height == 0) {
|
||||||
|
|
||||||
/* Try to use user-configured window dimentions */
|
/* Try to use user-configured window dimentions */
|
||||||
unsigned width = conf->width;
|
unsigned width = conf->width;
|
||||||
unsigned height = conf->height;
|
unsigned height = conf->height;
|
||||||
|
|
@ -680,6 +682,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
|
||||||
width = max(width, term->cell_width);
|
width = max(width, term->cell_width);
|
||||||
height = max(height, term->cell_height);
|
height = max(height, term->cell_height);
|
||||||
render_resize(term, width, height);
|
render_resize(term, width, height);
|
||||||
|
}
|
||||||
|
|
||||||
return term;
|
return term;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue