Add set_decorations method to Window (#365)
This has been stubbed on all platforms other than X11. The X11 implementation has also been revised to toggle correctly, as it was previously only able to remove decorations.
This commit is contained in:
parent
b36a8e010f
commit
463f316cb8
9 changed files with 79 additions and 37 deletions
|
|
@ -313,6 +313,12 @@ impl Window {
|
|||
self.window.set_fullscreen(monitor)
|
||||
}
|
||||
|
||||
/// Turn window decorations on or off.
|
||||
#[inline]
|
||||
pub fn set_decorations(&self, decorations: bool) {
|
||||
self.window.set_decorations(decorations)
|
||||
}
|
||||
|
||||
/// Returns the current monitor the window is on or the primary monitor is nothing
|
||||
/// matches
|
||||
pub fn get_current_monitor(&self) -> MonitorId {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue