mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 22:01:23 -06:00
[GH-ISSUE #1183] Feature Request: Drop focus on inactive screens #952
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#952
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 @umisef on GitHub (Jun 3, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1183
This request is to deal with a particular setup, so let me start by introducing the scenario I am trying to improve:
I have two separate Macs, both with multiple monitors. One of the Macs (the Barrier server) also runs a full-screen Linux VM on one of its monitors, using Parallels.
Parallels will synchronise the clipboard from the VM guest (linux) to the host (MacOS) whenever the VM "window" loses the keyboard focus, but NOT before then. This works well enough under MacOS, because any interactive way of pasting outside the VM will make the VM lose the keyboard focus.
However, Barrier moving the mouse from the Mac hosting the VM to the other Mac, then interacting with the other Mac, does not result in Parallels losing focus. Consequently, the server Mac's clipboard is not synchronised with the VM one's, and obviously, neither is the Barrier client's, so copying in the VM and pasting into the Barrier client doesn't work, unless one clicks outside the VM window first on the Barrier server.
It would be great if there was an option to remove the focus from the active window whenever the mouse leaves the screen(s) of one computer, and moves to another. Given that keypresses would not be delivered to the supposedly-in-focus window at that point, that seems like a semantically justifiable functionality. I understand that it is different from what a hardware KVM would do --- but so is the tremendously useful clipboard synchronization.
@umisef commented on GitHub (Jun 3, 2021):
It appears that Barrier itself only synchronises clipboards on screen changes, so the "simple" idea given above ("just" drop focus on screen change) would result in a bit of a race between the various clipboard synchronizations...