mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11:00
Update x11-dl
This commit is contained in:
parent
10f5528c14
commit
c068a770f0
2 changed files with 7 additions and 11 deletions
12
Cargo.toml
12
Cargo.toml
|
@ -85,39 +85,39 @@ osmesa-sys = "0.0.5"
|
||||||
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
||||||
wayland-kbd = "0.2.0"
|
wayland-kbd = "0.2.0"
|
||||||
wayland-window = "0.1.0"
|
wayland-window = "0.1.0"
|
||||||
x11-dl = "~2.0"
|
x11-dl = "~2.2"
|
||||||
|
|
||||||
[target.x86_64-unknown-linux-gnu.dependencies]
|
[target.x86_64-unknown-linux-gnu.dependencies]
|
||||||
osmesa-sys = "0.0.5"
|
osmesa-sys = "0.0.5"
|
||||||
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
||||||
wayland-kbd = "0.2.0"
|
wayland-kbd = "0.2.0"
|
||||||
wayland-window = "0.1.0"
|
wayland-window = "0.1.0"
|
||||||
x11-dl = "~2.0"
|
x11-dl = "~2.2"
|
||||||
|
|
||||||
[target.arm-unknown-linux-gnueabihf.dependencies]
|
[target.arm-unknown-linux-gnueabihf.dependencies]
|
||||||
osmesa-sys = "0.0.5"
|
osmesa-sys = "0.0.5"
|
||||||
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
||||||
wayland-kbd = "0.2.0"
|
wayland-kbd = "0.2.0"
|
||||||
wayland-window = "0.1.0"
|
wayland-window = "0.1.0"
|
||||||
x11-dl = "~2.0"
|
x11-dl = "~2.2"
|
||||||
|
|
||||||
[target.aarch64-unknown-linux-gnu.dependencies]
|
[target.aarch64-unknown-linux-gnu.dependencies]
|
||||||
osmesa-sys = "0.0.5"
|
osmesa-sys = "0.0.5"
|
||||||
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
||||||
wayland-kbd = "0.2.0"
|
wayland-kbd = "0.2.0"
|
||||||
wayland-window = "0.1.0"
|
wayland-window = "0.1.0"
|
||||||
x11-dl = "~2.0"
|
x11-dl = "~2.2"
|
||||||
|
|
||||||
[target.x86_64-unknown-dragonfly.dependencies]
|
[target.x86_64-unknown-dragonfly.dependencies]
|
||||||
osmesa-sys = "0.0.5"
|
osmesa-sys = "0.0.5"
|
||||||
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
||||||
wayland-kbd = "0.2.0"
|
wayland-kbd = "0.2.0"
|
||||||
wayland-window = "0.1.0"
|
wayland-window = "0.1.0"
|
||||||
x11-dl = "~2.0"
|
x11-dl = "~2.2"
|
||||||
|
|
||||||
[target.x86_64-unknown-freebsd.dependencies]
|
[target.x86_64-unknown-freebsd.dependencies]
|
||||||
osmesa-sys = "0.0.5"
|
osmesa-sys = "0.0.5"
|
||||||
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
|
||||||
wayland-kbd = "0.2.0"
|
wayland-kbd = "0.2.0"
|
||||||
wayland-window = "0.1.0"
|
wayland-window = "0.1.0"
|
||||||
x11-dl = "~2.0"
|
x11-dl = "~2.2"
|
||||||
|
|
|
@ -535,11 +535,7 @@ impl Window {
|
||||||
message_type: state_atom, // the _NET_WM_STATE atom is sent to change the state of a window
|
message_type: state_atom, // the _NET_WM_STATE atom is sent to change the state of a window
|
||||||
format: 32, // view `data` as `c_long`s
|
format: 32, // view `data` as `c_long`s
|
||||||
data: {
|
data: {
|
||||||
// TODO replace this with normal instantiation when x11-rs makes
|
let mut data = ffi::ClientMessageData::new();
|
||||||
// ClientMessageData instantiable.
|
|
||||||
let mut data = unsafe {
|
|
||||||
mem::transmute::<[libc::c_long; 5], ffi::ClientMessageData>([0; 5])
|
|
||||||
};
|
|
||||||
// This first `long` is the action; `1` means add/set following property.
|
// This first `long` is the action; `1` means add/set following property.
|
||||||
data.set_long(0, 1);
|
data.set_long(0, 1);
|
||||||
// This second `long` is the property to set (fullscreen)
|
// This second `long` is the property to set (fullscreen)
|
||||||
|
|
Loading…
Add table
Reference in a new issue