Add mouse passthrough tasks to window module
Co-authored-by: Jose Quesada <jquesada2016@fau.edu>
This commit is contained in:
parent
6009420b57
commit
64ec099a9b
2 changed files with 38 additions and 0 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue