Update SCTK to 0.12
SCTK was a bit behind on Wayland protocol version, and so this release brings it up to date. It also cleans up 'Environment'.
This commit is contained in:
parent
3d85af04be
commit
b9f3d333e4
3 changed files with 4 additions and 7 deletions
|
|
@ -99,11 +99,7 @@ impl<T: 'static> EventLoop<T> {
|
|||
let display_proxy = display.attach(event_queue.token());
|
||||
|
||||
// Setup environment.
|
||||
let env = Environment::init(&display_proxy, WinitEnv::new());
|
||||
|
||||
// Issue 2 sync roundtrips to initialize environment.
|
||||
event_queue.sync_roundtrip(&mut (), |_, _, _| unreachable!())?;
|
||||
event_queue.sync_roundtrip(&mut (), |_, _, _| unreachable!())?;
|
||||
let env = Environment::new(&display_proxy, &mut event_queue, WinitEnv::new())?;
|
||||
|
||||
// Create event loop.
|
||||
let event_loop = calloop::EventLoop::<WinitState>::new()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue