aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/x11/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/mod.rs b/src/api/x11/mod.rs
index 29f2bba..4edfbbd 100644
--- a/src/api/x11/mod.rs
+++ b/src/api/x11/mod.rs
@@ -193,7 +193,7 @@ impl<'a> Iterator for PollEventsIterator<'a> {
ffi::KeyPress | ffi::KeyRelease => {
use events::Event::{KeyboardInput, ReceivedCharacter};
use events::ElementState::{Pressed, Released};
- let event: &mut ffi::XKeyEvent = unsafe { mem::transmute(&xev) };
+ let event: &mut ffi::XKeyEvent = unsafe { mem::transmute(&mut xev) };
if event.type_ == ffi::KeyPress {
let raw_ev: *mut ffi::XKeyEvent = event;