mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[GH-ISSUE #187] Input capture not working with Wayland/Linux/labwc #84
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#84
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 @chris-y on GitHub (Sep 3, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/187
I am trying to run lan-mouse on a Raspberry Pi with labwc (I also tried Wayfire), and it is not working. I installed with cargo as per the instructions.
I guess I'm missing something. I checked xdg-desktop-portal was installed.
@feschber commented on GitHub (Sep 3, 2024):
There are two backends in lan-mouse in question here:
Input Capture Portal
The wlr desktop portal does not implement the InputCapture portal yet: https://github.com/labwc/labwc/issues/1263
I've been thinking about writing a libei "bridge" as described in the linked issue and move it out of lan-mouse but that is basically what the layer-shell backend does:
Layer Shell
labwc does not implement keyboard-shortcut-inhibit-unstable-v1, which is required for the layer-shell backend to pass keyboard shortcuts that would otherwise be handled by labwc itself: https://github.com/labwc/labwc/issues/1046
Labwc is the first compositor I've come across so far that does not implement this protocol, which is why it has been a hard dependency so far.
Their reasoning as to not implementing it sounds valid to me.
Making the protocol a soft dependency for lan-mouse would enable ToggleKeybinds as a workaround.
Automatically toggling this would however require manual action or could maybe be done through an
enter_hook.Maybe this is a compelling reason for labwc to implement the protocol ;)
@feschber commented on GitHub (Sep 3, 2024):
Just tested this and it seems like the layer-shell implementation in labwc does not correctly interact with pointer-constraints right now. I will see if I can write a patch for that.
Aside from that, a "leave" hook would probably be needed for the ToggleKeybinds workaround.
@TopherTimeMachine commented on GitHub (Jan 13, 2025):
Is there any updates for this?
@swapnanil1 commented on GitHub (Jun 6, 2025):
i'm having this same warning on swaywm 1.10