Skip to content

Commit

Permalink
fixed inverted logic for enabling/disabling mouse passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
jquesada2016 committed Feb 22, 2024
1 parent c83dc54 commit 612ded4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winit/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -865,10 +865,10 @@ pub fn run_command<A, C, E>(
.expect("Send message to event loop.");
}
window::Action::DisableMousePassthrough(_id) => {
let _res = window.set_cursor_hittest(false);
let _res = window.set_cursor_hittest(true);
}
window::Action::EnableMousePassthrough(_id) => {
let _res = window.set_cursor_hittest(true);
let _res = window.set_cursor_hittest(false);
}
},
command::Action::System(action) => match action {
Expand Down

0 comments on commit 612ded4

Please sign in to comment.