Skip to content

Commit

Permalink
Fix. macos, workaround fn (rustdesk#7319)
Browse files Browse the repository at this point in the history
Signed-off-by: fufesou <[email protected]>
  • Loading branch information
fufesou authored Mar 5, 2024
1 parent c0128d8 commit befac94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/input_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ struct VirtualInputState {
#[cfg(target_os = "macos")]
impl VirtualInputState {
fn new() -> Option<Self> {
VirtualInput::new(CGEventSourceStateID::Private, CGEventTapLocation::Session)
VirtualInput::new(CGEventSourceStateID::CombinedSessionState, CGEventTapLocation::Session)
.map(|virtual_input| Self {
virtual_input,
capslock_down: false,
Expand Down

0 comments on commit befac94

Please sign in to comment.