Implement Window.set_inner_size on X11.

This commit is contained in:
Daggerbot 2015-07-23 22:50:25 +00:00
parent 20dbd2a8b0
commit 6d6290df6e

View file

@ -596,8 +596,8 @@ impl Window {
self.get_geometry().map(|(_, _, w, h, b)| (w + b, h + b)) // TODO: is this really outside?
}
pub fn set_inner_size(&self, _x: u32, _y: u32) {
unimplemented!()
pub fn set_inner_size(&self, x: u32, y: u32) {
unsafe { (self.x.display.xlib.XResizeWindow)(self.x.display.display, self.x.window, x as libc::c_uint, y as libc::c_uint); }
}
pub fn create_window_proxy(&self) -> WindowProxy {