Skip to content

pointer-warp: fix forgetting enter serial - #15462

Merged
vaxerski merged 2 commits into
hyprwm:mainfrom
Dregu:pointer-warp-serial
Jul 17, 2026
Merged

pointer-warp: fix forgetting enter serial#15462
vaxerski merged 2 commits into
hyprwm:mainfrom
Dregu:pointer-warp-serial

Conversation

@Dregu

@Dregu Dregu commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Describe your PR, what does it fix/add?

Fixes pointer-warp proto that stops working after a while because the proto uses the latest serial from pointer::enter for validation, but that serial was kept in a common fifo that actually gets cleared pretty fast. Now keeps enterSerial forever, or until the next enter at least. Actually probably many protocols rely on this being kept safe.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

I have no idea if this box of serials the others are kept in makes any sense at all, I just extracted the enterSerial from it to be kept safe. I feel like technically many things should probably be validated only against the enterSerial, not a box of random ones, but I don't have all the details and don't want to get into it.

Relevant disco #14622

Reprod simply with random SDL3 demo with SDL_WarpMouseInWindow(window, 200.0f, 200.0f); stuck in the middle. Initially window seems to lock pointer, but releases it after smashing asdf for a few seconds, which exhausts the serial buffer and forgets our enter serial.

Is it ready for merging, or does it need work?

Ready, but maybe someone test the real games too (cs2 radial menu, patched minecraft inventory etc)

@CoolAtlantis

Copy link
Copy Markdown

Wow that's amazing, I love that.

Comment thread src/managers/SeatManager.hpp Outdated
Comment thread src/managers/SeatManager.cpp Outdated
@vaxerski

Copy link
Copy Markdown
Member

@codex review please

@chatgpt-codex-connector chatgpt-codex-connector 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.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e8d17b808

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/managers/SeatManager.cpp
Comment thread src/managers/SeatManager.hpp Outdated
@Dregu
Dregu force-pushed the pointer-warp-serial branch from 8e8d17b to 00d00c6 Compare July 17, 2026 16:05
@vaxerski
vaxerski merged commit 26c0b38 into hyprwm:main Jul 17, 2026
9 of 10 checks passed
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.

3 participants