remotedesktop: release modifiers on monitor switch

This commit is contained in:
toneengo 2024-12-21 14:36:10 +10:30
parent d703e84bbc
commit df607b82eb

View file

@ -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) {