aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Badawy <adambada@buffalo.edu>2015-10-27 03:22:13 -0400
committerAdam Badawy <adambada@buffalo.edu>2015-10-27 03:22:13 -0400
commitc068a770f0faec9a0fed199e9e9dfc0a00599e97 (patch)
tree709d4012d161bcedde46aa816a19450e99f96192
parent10f5528c14ef93160470b781fadabcfd93659568 (diff)
downloadglutin-c068a770f0faec9a0fed199e9e9dfc0a00599e97.tar.gz
glutin-c068a770f0faec9a0fed199e9e9dfc0a00599e97.zip
Update x11-dl
-rw-r--r--Cargo.toml12
-rw-r--r--src/api/x11/window.rs6
2 files changed, 7 insertions, 11 deletions
diff --git a/Cargo.toml b/Cargo.toml
index dacef71..e0dcaf3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -85,39 +85,39 @@ osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
-x11-dl = "~2.0"
+x11-dl = "~2.2"
[target.x86_64-unknown-linux-gnu.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
-x11-dl = "~2.0"
+x11-dl = "~2.2"
[target.arm-unknown-linux-gnueabihf.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
-x11-dl = "~2.0"
+x11-dl = "~2.2"
[target.aarch64-unknown-linux-gnu.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
-x11-dl = "~2.0"
+x11-dl = "~2.2"
[target.x86_64-unknown-dragonfly.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
-x11-dl = "~2.0"
+x11-dl = "~2.2"
[target.x86_64-unknown-freebsd.dependencies]
osmesa-sys = "0.0.5"
wayland-client = { version = "0.2.1", features = ["egl", "dlopen"] }
wayland-kbd = "0.2.0"
wayland-window = "0.1.0"
-x11-dl = "~2.0"
+x11-dl = "~2.2"
diff --git a/src/api/x11/window.rs b/src/api/x11/window.rs
index 24dca34..cfe38d1 100644
--- a/src/api/x11/window.rs
+++ b/src/api/x11/window.rs
@@ -535,11 +535,7 @@ impl 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
data: {
- // TODO replace this with normal instantiation when x11-rs makes
- // ClientMessageData instantiable.
- let mut data = unsafe {
- mem::transmute::<[libc::c_long; 5], ffi::ClientMessageData>([0; 5])
- };
+ let mut data = ffi::ClientMessageData::new();
// This first `long` is the action; `1` means add/set following property.
data.set_long(0, 1);
// This second `long` is the property to set (fullscreen)