wayland: implement set_resizable (#565)

This commit is contained in:
Victor Berger 2018-06-13 17:18:44 +02:00 committed by Francesca Frangipane
parent 233ac4aed2
commit ced1616e51
4 changed files with 11 additions and 4 deletions

View file

@ -237,7 +237,7 @@ impl Window {
pub fn set_resizable(&self, resizable: bool) {
match self {
&Window::X(ref w) => w.set_resizable(resizable),
&Window::Wayland(ref _w) => unimplemented!(),
&Window::Wayland(ref w) => w.set_resizable(resizable),
}
}

View file

@ -101,6 +101,8 @@ impl Window {
frame.set_maximized();
}
frame.set_resizable(attributes.resizable);
// set decorations
frame.set_decorate(attributes.decorations);
@ -198,6 +200,11 @@ impl Window {
self.frame.lock().unwrap().set_max_size(dimensions);
}
#[inline]
pub fn set_resizable(&self, resizable: bool) {
self.frame.lock().unwrap().set_resizable(resizable);
}
#[inline]
pub fn set_cursor(&self, _cursor: MouseCursor) {
// TODO