[GH-ISSUE #247] Persistent "Capture Input" popup #119

Open
opened 2026-05-05 22:10:18 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @aslafy-z on GitHub (Jan 10, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/247

After a few seconds of smooth operation, an intempestive "Capture Input / Allow Remote Input Capture" popup appears on the remote host. The mouse becomes locked to the remote host, requiring permission to escape.

image

If I grant permission, switch back to the local machine, and then return to the remote host, the popup reappears, creating a frustrating loop.

I confirm this popup already appears at lan-mouse startup, along with "Remote Desktop / Allow Remote Interaction", and I allowed both of them at that time.

Configuration (both local and remote):

  • lan-mouse version: v0.10.0
  • Desktop Environment: Wayland / Gnome 47
  • OS: Up-to-date Arch Linux
  • Kernel: Linux 6.12.4-arch1-1
Originally created by @aslafy-z on GitHub (Jan 10, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/247 After a few seconds of smooth operation, an intempestive "Capture Input / Allow Remote Input Capture" popup appears on the remote host. The mouse becomes locked to the remote host, requiring permission to escape. ![image](https://github.com/user-attachments/assets/dbcafecb-844e-419f-8168-d3c557d02301) If I grant permission, switch back to the local machine, and then return to the remote host, the popup reappears, creating a frustrating loop. I confirm this popup already appears at lan-mouse startup, along with "Remote Desktop / Allow Remote Interaction", and I allowed both of them at that time. #### Configuration (both local and remote): - **lan-mouse version:** v0.10.0 - **Desktop Environment:** Wayland / Gnome 47 - **OS:** Up-to-date Arch Linux - **Kernel:** Linux 6.12.4-arch1-1
Author
Owner

@nbolton commented on GitHub (Jan 10, 2025):

We put up a bounty on our project for this: https://github.com/deskflow/deskflow/issues/8032

Peter's (@whot) change in XDG Desktop Portal is almost done: https://github.com/flatpak/xdg-desktop-portal/pull/1186

There are 4 people (trying for the bounty) attempting to finish the work, but the remaining work has to be done in the window mangers, Mutter, KWin, etc.

Let's hope for some movement on this soon!

<!-- gh-comment-id:2584252723 --> @nbolton commented on GitHub (Jan 10, 2025): We put up a bounty on our project for this: https://github.com/deskflow/deskflow/issues/8032 Peter's (@whot) change in XDG Desktop Portal is almost done: https://github.com/flatpak/xdg-desktop-portal/pull/1186 There are 4 people (trying for the bounty) attempting to finish the work, but the remaining work has to be done in the window mangers, [Mutter](https://gitlab.gnome.org/GNOME/mutter), [KWin](https://invent.kde.org/plasma/kwin), etc. Let's hope for some movement on this soon!
Author
Owner

@feschber commented on GitHub (Feb 14, 2025):

Related:

https://gitlab.gnome.org/GNOME/mutter/-/issues/3908

<!-- gh-comment-id:2658842656 --> @feschber commented on GitHub (Feb 14, 2025): Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/3908
Author
Owner
<!-- gh-comment-id:2659448066 --> @nbolton commented on GitHub (Feb 14, 2025): > Related: > > https://gitlab.gnome.org/GNOME/mutter/-/issues/3908 Also: https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/326
Author
Owner

@sithlord48 commented on GitHub (Aug 19, 2025):

To make this work you need to (what we do in deskflow)

  1. Set the persist_mode to 2 (until revoked) when you call SelectDevices
  2. When you call Start Later the token you get back will be vaild until revoked
  3. Save the token in your settings.
  4. Next time you open the RemoteDesktop Portal during the SelectDevices call set the restore_token option to your storted token.
  5. Enjoy :D
<!-- gh-comment-id:3201126058 --> @sithlord48 commented on GitHub (Aug 19, 2025): To make this work you need to (what we do in deskflow) 1. Set the `persist_mode` to `2` (until revoked) when you call `SelectDevices` 2. When you call `Start` Later the token you get back will be vaild until revoked 3. Save the token in your settings. 4. Next time you open the `RemoteDesktop` Portal during the `SelectDevices` call set the `restore_token` option to your storted token. 5. Enjoy :D
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#119
No description provided.