Open Vassili-Dev opened 1 month ago
I won't pretend to know how this works, so please take this with a bucket of salt, but I suspect it has to do with to_key_event
not generating KeyboardEvent::Modifiers
.
Yeah, I hinted at this in the README: "Gnome -> Sway only partially works (modifier events are not handled correctly)" This is a bit of a lie, as it does not only apply to GNOME but technically anything but Sway at this point, as you have realized.
You are totally right about the to_key_event
function, however I think it's ultimately better to generate the Modifiers
event on the client side rather than on every capture backend (this would need to be added to the input-capture-portal backend as well for example). The wlroots backend is the only backend that actually needs modifier events as far as I remember.
Unfortunately I have not found the time to implement this yet but its definitely a priority once the encryption stuff is done :)
When running Windows + Sway:
Windows -> Sway:
Modifier+Key
only seems to registerKey
(Can't use Sway Shortcuts, Can't do^C
, etc) Sway -> Windows: Works as expectedWindows
Sway
Logs: LanMouseLog_Sway.txt LanMouseLog_Windows.txt