From c068a770f0faec9a0fed199e9e9dfc0a00599e97 Mon Sep 17 00:00:00 2001 From: Adam Badawy Date: Tue, 27 Oct 2015 03:22:13 -0400 Subject: Update x11-dl --- src/api/x11/window.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/api/x11') 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) -- cgit v1.2.3