aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 10:16:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 10:16:06 +0000
commit913c684844ad41c8a4b803abd649a9460e3a57dd (patch)
treeb2627d7d7280c6bb05b860ebfe1e72fcb45ed031 /wayland.c
parentterm: spell 'initialize' correctly (diff)
term: term_init() calls wl_display_roundtrip()
Instead of having `wayl_win_init()` call `wl_display_roundtrip()` (which it itself doesn't need), call it from `term_init()`. This allows us to add ourselves (the new terminal instance) to the terminal list in the wayland backend, before triggering the wayland events caused by `wayl_win_init()`. This is turn allows the wayland backend to find/lookup the new terminal when those events occur..
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wayland.c b/wayland.c
index 7ab1ef2f..816ef1b6 100644
--- a/wayland.c
+++ b/wayland.c
@@ -804,8 +804,6 @@ wayl_win_init(struct wayland *wayl)
wl_subsurface_set_desync(win->search_sub_surface);
wl_surface_commit(win->surface);
- wl_display_roundtrip(wayl->display);
-
return win;
out: