Skip to content

feat: support relative pointer and pointer constraints#956

Open
LFRon wants to merge 2 commits into
linuxdeepin:masterfrom
LFRon:minecraft-like-fix
Open

feat: support relative pointer and pointer constraints#956
LFRon wants to merge 2 commits into
linuxdeepin:masterfrom
LFRon:minecraft-like-fix

Conversation

@LFRon

@LFRon LFRon commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

其实就是跑Minecraft Java Edition时会出现: 1. 永远只能看地面 2. 鼠标轻微移动视角就会看着地转好几圈 3. 鼠标向下移动太猛导致直接把光标直接移到了dde-shell上

该PR用于修复这个问题, 供给大佬们参考(

--

Add waylib wrappers for relative-pointer-v1 and pointer-constraints-v1, attach them during treeland startup, and route pointer motion through the seat so locked pointers receive relative motion without moving the compositor cursor.

This fixes Xwayland games such as Minecraft Java losing correct mouse input, spinning the camera, or letting the pointer escape while grabbed.

Add waylib wrappers for relative-pointer-v1 and pointer-constraints-v1,
attach them during treeland startup, and route pointer motion through the
seat so locked pointers receive relative motion without moving the compositor
cursor.

This fixes Xwayland games such as Minecraft Java losing correct mouse input,
spinning the camera, or letting the pointer escape while grabbed.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @LFRon, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: LFRon

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot

Copy link
Copy Markdown

Hi @LFRon. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@deepin-bot

deepin-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 0.8.9
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #980

@deepin-bot

deepin-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 0.8.10
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #983

@deepin-bot

deepin-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

TAG Bot

New tag: 0.8.11
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants