add toggle decorations action
This commit is contained in:
parent
7ceb8b8d40
commit
750fecd6bc
2 changed files with 10 additions and 0 deletions
|
|
@ -660,6 +660,9 @@ pub fn run_command<A, E>(
|
|||
window::Action::ToggleMaximize => {
|
||||
window.set_maximized(!window.is_maximized())
|
||||
}
|
||||
window::Action::ToggleDecorations => {
|
||||
window.set_decorations(!window.is_decorated())
|
||||
}
|
||||
window::Action::FetchMode(tag) => {
|
||||
let mode = if window.is_visible().unwrap_or(true) {
|
||||
conversion::mode(window.fullscreen())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue