diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-08-07 17:36:48 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2014-08-07 17:36:48 +0200 |
commit | 2184e5e57856366ef31531dcafa89645fec453fd (patch) | |
tree | ead07c658f7fad38764e1d8f654cc412c19114b6 /src/x11 | |
parent | c7aa219ef11add2078c96958ed679594d0570d72 (diff) | |
download | glutin-2184e5e57856366ef31531dcafa89645fec453fd.tar.gz glutin-2184e5e57856366ef31531dcafa89645fec453fd.zip |
Minor style fix in X11
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/x11/mod.rs b/src/x11/mod.rs index b7393ce..c384e1a 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -40,7 +40,6 @@ impl Window { pub fn new(builder: WindowBuilder) -> Result<Window, String> { // TODO: temporary let dimensions = builder.dimensions; - let title = builder.title.as_slice(); // calling XOpenDisplay let display = unsafe { @@ -134,7 +133,7 @@ impl Window { let mut wm_delete_window = ffi::XInternAtom(display, "WM_DELETE_WINDOW".to_c_str().as_ptr() as *const libc::c_char, 0); ffi::XSetWMProtocols(display, window, &mut wm_delete_window, 1); - ffi::XStoreName(display, window, mem::transmute(title.as_slice().as_ptr())); + ffi::XStoreName(display, window, mem::transmute(builder.title.as_slice().as_ptr())); ffi::XFlush(display); wm_delete_window |