mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 06:06:07 -06:00
[GH-ISSUE #127] Windows: Input Lost on Elevated Programs #49
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#49
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 @andreaxhearts on GitHub (May 10, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/127
Windows 10 is the client with Ubuntu Linux as the server, set up correctly on both ends. Whenever a program running as admin opens on Windows (UAC prompt, admin command prompt, etc.), input is lost on the Windows machine. I have to use the release keys and make sure the elevated program isn't in focus to be able to use lan-mouse again.
@feschber commented on GitHub (May 10, 2024):
You can run it as administrator to prevent this but I did not want to enforce that (yet)
@andreaxhearts commented on GitHub (May 10, 2024):
I did just test that, yep that works. User Account Control popup still gets in the way regardless, but most of the time that gets turned off anyway. That's only case though, everything else works with admin.
@feschber commented on GitHub (May 10, 2024):
Yeah you're right, the uac prompt probably needs even higher privileges
@vilhalmer commented on GitHub (Jul 24, 2024):
This also occurs when focusing a window which has been marked as Not Responding and like UAC, running as admin can't avoid it. Not sure there's anything that can be done about it, but worth noting.
@GladOSkar commented on GitHub (Jan 28, 2026):
I believe on Synergy/Barrier, i was even able to click UAC prompts (although the connection broke when the UAC prompt came up and i had to re-move the mouse to the windows computer while the prompt was open. But i was absolutely able to click it remotely, never even had a keyboard/mouse on that PC. Maybe someone who knows more about this can figure out how they did it
Edit: Some info about how that worked can be found at https://github.com/debauchee/barrier/issues/264
Setting the UAC settings in
Control panel\User Accounts\User Accountsto "don't dim" makes it not break the connection, and setting it to "Never notify" will never prompt and therefore also works. That's enough for me, but obviously very insecure.@vilhalmer commented on GitHub (Jan 28, 2026):
Synergy was probably running as SYSTEM. I've been using Sunshine/Apollo as a remote desktop solution lately which also runs at this level and it is also able to interact with nearly all elevated windows, including frozen windows and UAC even with dimming still enabled.
I'm all for not mandating this, but perhaps documenting/providing a way of running as a system service for people who do want the elevation would be enough of a fix? (I don't actually know how to create one, I am more of a necessity user than a power user on the Windows side.)
@jonstelly commented on GitHub (Feb 3, 2026):
I've started digging into this. It's nowhere near ready for a PR yet and my branch has some other build, ai and github workflow changes so it looks like a mess, I'll extract out the windows service bits before submitting an isolated PR but I have:
lan-mouse install-serviceor uninstall service from elevated shell - registers service, copies user's config and certificate if they exist to the service config directory (probably some discussion to be had here)branch with changes
main starting point commit is this
I'll spend a bit of time finishing things and get a PR spun up in a week or so.