mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #1025] Cursor jumps position crossing monitors #811
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#811
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 @accrapmail on GitHub (Jan 16, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1025
Mouse doesn't transition cleanly between screens. It jumps to the left or right depending on the action. The screen resolutions are different but this appears to be more of a relative position (scaling) issue.
My configuration and screen mockup are contained below. The PC-2 monitor is above the right monitor of the PC-1 system which runs as the Barrier server. Use a configuration file to account for the different sizes. Basically 50%-80% to/from the Barrier server = 0%-100% to/from the Barrier client. The mouse moving between monitors works. The issue is the mouse position between monitors is not relative. It jumps.
EXPECTED BEHAVIOR:
PC-1 to PC-2:
- PC-1 50% moves to PC-2 0%
- PC-1 65% moves to PC-2 50%
- PC-1 80% moves to PC-2 100%
Scaling accordingly.
PC-2 to PC-1:
- PC-2 0% moves to PC-1 50%
- PC-2 50% moves to PC-1 65%
- PC-2 100% moves to PC-1 80%
Scaling accordingly.
OBSERVED BEHAVIOR:
PC-1 to PC-2:
- PC-1 50% moves to PC-2 roughly 60%
- PC-1 65% moves to PC-2 100%
- PC-1 80% moves to PC-2 100%
It doesn't scale accordingly. Looks like it keeps the PC-1 percentage and then adds x% on top so the mouse ends up jumping to the far right of PC-2 the majority of the time.
PC-2 to PC-1:
- PC-2 0-100% moves to PC-1 50%
Doesn't matter where the mouse is on PC-2, when transitioning back to PC-1 it jumps to the PC-1 50% point instead of dropping straight down.
Finding documentation for config files has been a bit challenging so I'm not sure if this is a bug or if I've missed something in the configuration. Config information is included below. Would appreciate it if anyone could weigh in on correcting the config or confirm if it is a defect. Thanks much.
SCREEN LAYOUT:
.............................................|-----------------|
.............................................|...............................|
.............................................|.PC 2 Screen 1..|
.............................................|....1680x1050.....|
.............................................|...............................|
.............................................|-----------------|
.............................................0%.................100%
............................................50%.................80%
.------------------------ -------------------------
.|............................................|............................................|
.|........PC 1 Screen 1........|.........PC 1 Screen 2.......|
.|.........2560 x 1440..........|.........2560 x 1440..........|
.|............................................|.............................................|
.------------------------ -------------------------
Configuration - Load a saved configuration file. Contents of the file are;
.======================================================
section: screens
BARSRVR1:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
preserveFocus = false
switchCorners = none
switchCornerSize = 0
BARCLNT1:
halfDuplexCapsLock = false
halfDuplexNumLock = false
halfDuplexScrollLock = false
xtestIsXineramaUnaware = false
preserveFocus = false
switchCorners = none
switchCornerSize = 0
end
section: aliases
end
section: links
BARSRVR1:
up(50,80) = BARCLNT1(0,100)
BARCLNT1:
down(0,100) = BARSRVR1(50,80)
end
section: options
relativeMouseMoves = false
screenSaverSync = true
win32KeepForeground = false
clipboardSharing = true
switchCorners = none
switchCornerSize = 0
end