Merge pull request #2284 from jquesada2016/mouse_passthrough

Add command for setting mouse passthrough
This commit is contained in:
Héctor Ramón 2024-09-05 11:22:03 +02:00 committed by GitHub
commit b5cbb4a4e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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) => {