[GH-ISSUE #1128] Problems when the pointer is captured by the client #906

Open
opened 2026-05-05 07:15:40 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Rayzeq on GitHub (Apr 14, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1128

Describe the bug
When an application on the server captures the pointer, there is no problem. But if an application captures the pointer on the client it moves very strangely (everything is too fast, the movements don't go in the right direction)

To Reproduce
Run an application that captures the pointer (almost all 3d games) on the client, and control the camera with the server mouse

Screenshots
https://user-images.githubusercontent.com/26172375/114715276-34395e80-9d33-11eb-8a9c-571fac065909.mp4 (I moved my mouse normally, as if I wanted to look around)

Desktop:

  • Server: Ubuntu 20.04 / Barrier 2.3.3-release-12024b9a
  • Client : Windows 10 / Barrier 2.3.3-release-3395cca9

Additional context
I think the problem is that barrier doesn't know that the cursor is moved to the middle of the screen (that's what happens when it is captured), so the server sends the cursor position to the wrong place. This also explains why the movements are fast, because the cursor is much further from the middle of the screen than it should be. Note also that the cursor can return to the server screen, which should not be the case.

PS: I tried to check 'Use relative mouse moves', nothing changed.
PPS: I used a translation tool to write this message, so there are probably some mistakes

Originally created by @Rayzeq on GitHub (Apr 14, 2021). Original GitHub issue: https://github.com/debauchee/barrier/issues/1128 **Describe the bug** When an application on the server captures the pointer, there is no problem. But if an application captures the pointer on the client it moves very strangely (everything is too fast, the movements don't go in the right direction) **To Reproduce** Run an application that captures the pointer (almost all 3d games) on the client, and control the camera with the server mouse **Screenshots** https://user-images.githubusercontent.com/26172375/114715276-34395e80-9d33-11eb-8a9c-571fac065909.mp4 (I moved my mouse normally, as if I wanted to look around) **Desktop:** - Server: Ubuntu 20.04 / Barrier 2.3.3-release-12024b9a - Client : Windows 10 / Barrier 2.3.3-release-3395cca9 **Additional context** I think the problem is that barrier doesn't know that the cursor is moved to the middle of the screen (that's what happens when it is captured), so the server sends the cursor position to the wrong place. This also explains why the movements are fast, because the cursor is much further from the middle of the screen than it should be. Note also that the cursor can return to the server screen, which should not be the case. PS: I tried to check 'Use relative mouse moves', nothing changed. PPS: I used a translation tool to write this message, so there are probably some mistakes
Author
Owner

@blueforesticarus commented on GitHub (Feb 11, 2022):

I have the opposite issue, when the pointer is captured on the server it is not respected, and after panning to the right in a game the cursor hops over to the client.

<!-- gh-comment-id:1035817997 --> @blueforesticarus commented on GitHub (Feb 11, 2022): I have the opposite issue, when the pointer is captured on the server it is not respected, and after panning to the right in a game the cursor hops over to the client.
Author
Owner

@Rayzeq commented on GitHub (Feb 11, 2022):

@blueForestIcarus Indeed, the cursor leaves the server screen even if it is captured, but I think that's another issue, and you can use a keybind to lock the cursor to a screen as a workaround.

<!-- gh-comment-id:1036303163 --> @Rayzeq commented on GitHub (Feb 11, 2022): @blueForestIcarus Indeed, the cursor leaves the server screen even if it is captured, but I think that's another issue, and you can use a keybind to lock the cursor to a screen as a workaround.
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#906
No description provided.