From 6c6e3da7e243dde5d4df2e2dfa33aa1abf8a3ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 9 Mar 2020 18:46:50 +0100 Subject: [PATCH] term: init: no need to roundtrip --- terminal.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/terminal.c b/terminal.c index 7fc177f0..0a7e5b5e 100644 --- a/terminal.c +++ b/terminal.c @@ -770,15 +770,15 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl, if ((term->window = wayl_win_init(term)) == NULL) goto err; - /* Let the Wayland backend know we exist */ - tll_push_back(wayl->terms, term); - wayl_roundtrip(term->wl); - term_set_window_title(term, "foot"); - /* Load fonts */ if (!term_font_dpi_changed(term)) goto err; + term_set_window_title(term, "foot"); + + /* Let the Wayland backend know we exist */ + tll_push_back(wayl->terms, 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;