Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Fix. macos, workaround fn (#7319)

fufesoubefac9447344
diff --git a/src/server/input_service.rs b/src/server/input_service.rs
index 79443b1f2..7d1392bbf 100644
--- a/src/server/input_service.rs
+++ b/src/server/input_service.rs
@@ -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,