Implement resize events on X11

This commit is contained in:
Pierre Krieger 2014-07-28 13:16:55 +02:00
parent 07a53af952
commit 5764b9c243
2 changed files with 17 additions and 0 deletions

View file

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