Add mouse passthrough tasks to window module

Co-authored-by: Jose Quesada <jquesada2016@fau.edu>
This commit is contained in:
Héctor Ramón Jiménez 2024-09-05 11:13:37 +02:00
parent 6009420b57
commit 64ec099a9b
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 38 additions and 0 deletions

View file

@ -1435,6 +1435,16 @@ fn run_action<P, C>(
));
}
}
window::Action::EnableMousePassthrough(id) => {
if let Some(window) = window_manager.get_mut(id) {
let _ = window.raw.set_cursor_hittest(false);
}
}
window::Action::DisableMousePassthrough(id) => {
if let Some(window) = window_manager.get_mut(id) {
let _ = window.raw.set_cursor_hittest(true);
}
}
},
Action::System(action) => match action {
system::Action::QueryInformation(_channel) => {