Return Mode::Hidden in window::Action::FetchMode
... when the window is not visible.
This commit is contained in:
parent
7ec4747304
commit
28a30079d1
1 changed files with 5 additions and 1 deletions
|
|
@ -635,7 +635,11 @@ pub fn run_command<A, E>(
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
window::Action::FetchMode(tag) => {
|
window::Action::FetchMode(tag) => {
|
||||||
let mode = conversion::mode(window.fullscreen());
|
let mode = if window.is_visible().unwrap_or(true) {
|
||||||
|
conversion::mode(window.fullscreen())
|
||||||
|
} else {
|
||||||
|
window::Mode::Hidden
|
||||||
|
};
|
||||||
|
|
||||||
proxy
|
proxy
|
||||||
.send_event(tag(mode))
|
.send_event(tag(mode))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue