[GH-ISSUE #1025] Cursor jumps position crossing monitors #811

Open
opened 2026-05-05 07:10:37 -06:00 by gitea-mirror · 0 comments
Owner

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

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
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/barrier#811
No description provided.