mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-27 20:09:48 +01:00
remotedesktop: release modifiers on monitor switch
This commit is contained in:
parent
d703e84bbc
commit
df607b82eb
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,9 @@ int EmulatedInputServer::onEvent(eis_event* e) {
|
||||||
case EIS_EVENT_DEVICE_STOP_EMULATING:
|
case EIS_EVENT_DEVICE_STOP_EMULATING:
|
||||||
device = eis_event_get_device(e);
|
device = eis_event_get_device(e);
|
||||||
Debug::log(LOG, "[EIS] Device {} will no longer send events", eis_device_get_name(device));
|
Debug::log(LOG, "[EIS] Device {} will no longer send events", eis_device_get_name(device));
|
||||||
|
|
||||||
|
depressed = 0;
|
||||||
|
virtualKeyboard->sendModifiers(depressed, latched, locked, 3);
|
||||||
break;
|
break;
|
||||||
case EIS_EVENT_POINTER_MOTION:
|
case EIS_EVENT_POINTER_MOTION:
|
||||||
if (virtualPointer != nullptr) {
|
if (virtualPointer != nullptr) {
|
||||||
|
|
Loading…
Reference in a new issue