Implement SetMode and FetchMode window actions
This commit is contained in:
parent
277b848ad8
commit
11f5527d76
7 changed files with 123 additions and 5 deletions
|
|
@ -640,6 +640,20 @@ pub fn run_command<A, E>(
|
|||
y,
|
||||
});
|
||||
}
|
||||
window::Action::SetMode(mode) => {
|
||||
window.set_visible(conversion::visible(mode));
|
||||
window.set_fullscreen(conversion::fullscreen(
|
||||
window.primary_monitor(),
|
||||
mode,
|
||||
));
|
||||
}
|
||||
window::Action::FetchMode(tag) => {
|
||||
let mode = conversion::mode(window.fullscreen());
|
||||
|
||||
proxy
|
||||
.send_event(tag(mode))
|
||||
.expect("Send message to event loop");
|
||||
}
|
||||
},
|
||||
command::Action::System(action) => match action {
|
||||
system::Action::QueryInformation(_tag) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue