mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 22:01:59 -06:00
[GH-ISSUE #204] Windows -> Wayland (Sway) Modifier Keys not registering #95
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Vassili-Dev on GitHub (Sep 22, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/204
When running Windows + Sway:
Windows -> Sway:
Modifier+Keyonly seems to registerKey(Can't use Sway Shortcuts, Can't do^C, etc)Sway -> Windows: Works as expected
Windows
Sway
Logs:
LanMouseLog_Sway.txt
LanMouseLog_Windows.txt
@Vassili-Dev commented on GitHub (Sep 22, 2024):
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_eventnot generatingKeyboardEvent::Modifiers.b071201dcb/input-capture/src/windows.rs (L184-L225)@feschber commented on GitHub (Sep 23, 2024):
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_eventfunction, however I think it's ultimately better to generate theModifiersevent 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 :)