aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-25 19:29:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-25 19:29:44 +0000
commitef53729242596344f07b1e9329ffaad51252b0c3 (patch)
tree0d9b48f36af4fce174c0cfbb5c74de0fbde04c6d /terminal.c
parentwayland: mark the whole search surface as opaque (diff)
render: resize with with/height == 0 resizes to user configured dimensions
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/terminal.c b/terminal.c
index 000d95b3..9c90e37d 100644
--- a/terminal.c
+++ b/terminal.c
@@ -773,29 +773,12 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
term_set_window_title(term, "foot");
/* Load fonts */
-#if 0
- struct font *fonts[4];
- if (!load_fonts_from_conf(term, conf, fonts))
- goto err;
- term_set_fonts(term, fonts);
-#endif
term_font_dpi_changed(term);
/* Start the slave/client */
if ((term->slave = slave_spawn(term->ptmx, argc, term->cwd, argv, term_env, conf->shell, login_shell)) == -1)
goto err;
- if (term->width == 0 && term->height == 0) {
-
- /* Try to use user-configured window dimentions */
- unsigned width = conf->width;
- unsigned height = conf->height;
-
- /* Don't go below a single cell */
- width = max(width, term->cell_width);
- height = max(height, term->cell_height);
- render_resize(term, width, height);
- }
return term;