Fix bad events

This commit is contained in:
Tomaka17 2014-07-30 13:11:49 +02:00
parent 838cc2b325
commit aa7d88dbda
4 changed files with 7 additions and 10 deletions

View file

@ -173,9 +173,9 @@ impl Window {
},
ffi::ResizeRequest => {
use SizeChanged;
use Resized;
let rs_event: &ffi::XResizeRequestEvent = unsafe { mem::transmute(&xev) };
events.push(SizeChanged(rs_event.width as uint, rs_event.height as uint));
events.push(Resized(rs_event.width as uint, rs_event.height as uint));
},
ffi::MotionNotify => {