[GH-ISSUE #314] A single mouse event "leaks" into chained clients when moving back #164

Open
opened 2026-05-05 22:12:14 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @hoshinolina on GitHub (Jul 27, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/314

Let's say I have three chained clients like this:

     +---+
     | C |
     +---+
+---++---+
| A || B |
+---++---+

The mouse is connected to A, which then has a client declaration for B, which then has a client declaration for C.

When the mouse is moved from A to B to C, things work as expected. When the mouse moves back from C to B, that works fine. However, when the mouse moves from B to A, the mouse pointer in C (which at this point is at the bottom of the screen, where it was left after B took control back) moves by an amount that seems to be equal to the mouse event that crossed over from B to A (to the left). In other words, somehow, the mouse events are momentarily directed to C again when crossing back from B to A.

This only happens once. Moving back to B and again to A does not leak any events to C. It's only the first time after leaving C, then leaving B, that an event leaks. To make it happen again, I need to move the mouse all the way to C one more time.

Originally created by @hoshinolina on GitHub (Jul 27, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/314 Let's say I have three chained clients like this: ``` +---+ | C | +---+ +---++---+ | A || B | +---++---+ ``` The mouse is connected to A, which then has a client declaration for B, which then has a client declaration for C. When the mouse is moved from A to B to C, things work as expected. When the mouse moves back from C to B, that works fine. However, when the mouse moves from B to A, the mouse pointer in C (which at this point is at the bottom of the screen, where it was left after B took control back) moves by an amount that seems to be equal to the mouse event that crossed over from B to A (to the left). In other words, somehow, the mouse events are momentarily directed to C again when crossing back from B to A. This only happens once. Moving back to B and again to A does not leak any events to C. It's only the first time after leaving C, then leaving B, that an event leaks. To make it happen again, I need to move the mouse all the way to C one more time.
Author
Owner

@feschber commented on GitHub (Oct 29, 2025):

Could you add which backends are being used on the three devices?

<!-- gh-comment-id:3460918828 --> @feschber commented on GitHub (Oct 29, 2025): Could you add which backends are being used on the three devices?
Author
Owner

@hoshinolina commented on GitHub (Nov 2, 2025):

This is running on KDE Plasma Wayland on all three machines, with the default backends, which it reports as:

[2025-11-02T12:03:27Z INFO  input_emulation] using emulation backend: libei
[2025-11-02T12:03:28Z INFO  input_capture] using capture backend: input-capture-portal
<!-- gh-comment-id:3477906278 --> @hoshinolina commented on GitHub (Nov 2, 2025): This is running on KDE Plasma Wayland on all three machines, with the default backends, which it reports as: ``` [2025-11-02T12:03:27Z INFO input_emulation] using emulation backend: libei [2025-11-02T12:03:28Z INFO input_capture] using capture backend: input-capture-portal ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#164
No description provided.