1
0
Fork 0
forked from wry/wry

acceptor: rebase from EventLoop onto AsyncEngine

This commit is contained in:
Julian Orth 2022-05-12 21:35:08 +02:00
parent 3037ee439c
commit 98cc85e2d3
2 changed files with 38 additions and 52 deletions

View file

@ -190,7 +190,7 @@ fn start_compositor2(
});
state.tracker.register(ClientId::from_raw(0));
create_dummy_output(&state);
let acceptor = Acceptor::install(&state)?;
let (acceptor, acceptor_future) = Acceptor::install(&state)?;
forker.install(&state);
forker.setenv(
WAYLAND_DISPLAY.as_bytes(),
@ -202,6 +202,7 @@ fn start_compositor2(
let compositor = engine.spawn(start_compositor3(state.clone(), test_future));
el.run()?;
drop(compositor);
drop(acceptor_future);
drop(acceptor);
drop(forker);
engine.clear();