mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-27 03:56:33 +11:00
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
|
@ -61,6 +61,7 @@
|
||||||
- **Breaking:** On Wayland, `Theme` trait was reworked.
|
- **Breaking:** On Wayland, `Theme` trait was reworked.
|
||||||
- On Wayland, disable maximize button for non-resizable window.
|
- On Wayland, disable maximize button for non-resizable window.
|
||||||
- On Wayland, added support for `set_ime_position`.
|
- On Wayland, added support for `set_ime_position`.
|
||||||
|
- On Wayland, fix crash on startup since GNOME 3.37.90.
|
||||||
|
|
||||||
# 0.22.2 (2020-05-16)
|
# 0.22.2 (2020-05-16)
|
||||||
|
|
||||||
|
|
|
@ -81,8 +81,8 @@ features = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
|
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies]
|
||||||
wayland-client = { version = "0.27", features = [ "dlopen"] , optional = true }
|
wayland-client = { version = "0.28", features = [ "dlopen"] , optional = true }
|
||||||
sctk = { package = "smithay-client-toolkit", version = "0.11", optional = true }
|
sctk = { package = "smithay-client-toolkit", version = "0.12", optional = true }
|
||||||
mio = "0.6"
|
mio = "0.6"
|
||||||
mio-extras = "2.0"
|
mio-extras = "2.0"
|
||||||
x11-dl = { version = "2.18.5", optional = true }
|
x11-dl = { version = "2.18.5", optional = true }
|
||||||
|
|
|
@ -99,11 +99,7 @@ impl<T: 'static> EventLoop<T> {
|
||||||
let display_proxy = display.attach(event_queue.token());
|
let display_proxy = display.attach(event_queue.token());
|
||||||
|
|
||||||
// Setup environment.
|
// Setup environment.
|
||||||
let env = Environment::init(&display_proxy, WinitEnv::new());
|
let env = Environment::new(&display_proxy, &mut event_queue, WinitEnv::new())?;
|
||||||
|
|
||||||
// Issue 2 sync roundtrips to initialize environment.
|
|
||||||
event_queue.sync_roundtrip(&mut (), |_, _, _| unreachable!())?;
|
|
||||||
event_queue.sync_roundtrip(&mut (), |_, _, _| unreachable!())?;
|
|
||||||
|
|
||||||
// Create event loop.
|
// Create event loop.
|
||||||
let event_loop = calloop::EventLoop::<WinitState>::new()?;
|
let event_loop = calloop::EventLoop::<WinitState>::new()?;
|
||||||
|
|
Loading…
Add table
Reference in a new issue