mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-13 08:21:03 -04:00
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..
This commit is contained in:
parent
4451f4ad62
commit
913c684844
2 changed files with 6 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue