Skip to content

🐞 Avoid cursor stutter when suppressing Mission Control - #1133

Open
jvanderen1 wants to merge 3 commits into
mrkai77:developfrom
jvanderen1:fix/609-suppress-mission-control-stutter
Open

🐞 Avoid cursor stutter when suppressing Mission Control#1133
jvanderen1 wants to merge 3 commits into
mrkai77:developfrom
jvanderen1:fix/609-suppress-mission-control-stutter

Conversation

@jvanderen1

@jvanderen1 jvanderen1 commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Description

With Suppress Mission Control enabled, dragging a window to the top of the screen used to stutter badly (#609).

Why: Loop kept Mission Control closed by warping the cursor 1px down on every drag event (CGWarpMouseCursorPosition). That fights the user’s upward drag, so the cursor thrashes.

Fix: Use an active event tap and rewrite the drag event’s location instead. macOS never sees a sustained top-edge hit, and we don’t warp the cursor.

This matches the original approach from before Loop switched to a listen-only monitor. Suppression still respects the Suppress Mission Control setting and only runs while a window is being dragged.

Fixes #609

How has this been tested?

Local Debug build on macOS Tahoe 26.x (darwin 25.6.0):

  • Suppress on + drag to top and hold — cursor stays smooth, Mission Control does not open
  • Top snap preview still appears and applies on mouse up
  • Suppress off — Mission Control can still open from a top-edge window drag

Screencast

output.mp4

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in this PR.

Please describe to which degree, if any, an LLM was used in creating this pull request.

Cursor (Grok) helped investigate the stutter and draft the change in WindowDragManager. I reviewed the code, confirmed it builds, and manually tested top-edge dragging before opening this PR.

jvanderen1 and others added 3 commits August 9, 2026 00:10
Rewrite top-edge drag events in an active tap instead of warping the cursor each frame, which caused the stutter reported in mrkai77#609.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 Mouse stutter when using window snap feature

1 participant