aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-09 17:49:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-09 17:49:44 +0000
commitfc7b3b2d85cc3cff87c367cb9022a3d049b9dcec (patch)
tree0b968b01b339b6af3806fe11aab6b2d88f73fd22 /terminal.c
parentfootrc: add default key bindings (diff)
parentserver/client: add XDG_SESSION_ID to the default socket path (diff)
Merge branch 'master' into bindings
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c10
1 files 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;