From df607b82eb789ba88422c24aa32533580f8daead Mon Sep 17 00:00:00 2001 From: toneengo Date: Sat, 21 Dec 2024 14:36:10 +1030 Subject: [PATCH] remotedesktop: release modifiers on monitor switch --- src/shared/Eis.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/Eis.cpp b/src/shared/Eis.cpp index 7807c1e..331f1f0 100644 --- a/src/shared/Eis.cpp +++ b/src/shared/Eis.cpp @@ -126,6 +126,9 @@ int EmulatedInputServer::onEvent(eis_event* e) { case EIS_EVENT_DEVICE_STOP_EMULATING: device = eis_event_get_device(e); Debug::log(LOG, "[EIS] Device {} will no longer send events", eis_device_get_name(device)); + + depressed = 0; + virtualKeyboard->sendModifiers(depressed, latched, locked, 3); break; case EIS_EVENT_POINTER_MOTION: if (virtualPointer != nullptr) {