Implement set_maximized, set_fullscreen and set_decorations for wayland (#383)
* wayland: implement Window::set_decorations() * wayland: implement Window::set_maximized() * wayland: implement Window::set_fullscreen() * Update changelog.
This commit is contained in:
parent
dddd9de151
commit
0ea4f93f05
3 changed files with 36 additions and 15 deletions
|
|
@ -248,9 +248,7 @@ impl Window {
|
|||
pub fn set_maximized(&self, maximized: bool) {
|
||||
match self {
|
||||
&Window::X(ref w) => w.set_maximized(maximized),
|
||||
&Window::Wayland(ref _w) => {
|
||||
unimplemented!();
|
||||
}
|
||||
&Window::Wayland(ref w) => w.set_maximized(maximized),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -258,9 +256,7 @@ impl Window {
|
|||
pub fn set_fullscreen(&self, monitor: Option<RootMonitorId>) {
|
||||
match self {
|
||||
&Window::X(ref w) => w.set_fullscreen(monitor),
|
||||
&Window::Wayland(ref _w) => {
|
||||
unimplemented!();
|
||||
}
|
||||
&Window::Wayland(ref w) => w.set_fullscreen(monitor)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -268,9 +264,7 @@ impl Window {
|
|||
pub fn set_decorations(&self, decorations: bool) {
|
||||
match self {
|
||||
&Window::X(ref w) => w.set_decorations(decorations),
|
||||
&Window::Wayland(ref _w) => {
|
||||
unimplemented!();
|
||||
}
|
||||
&Window::Wayland(ref w) => w.set_decorations(decorations)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue