Repository navigation
fix(compositor): a hidden cursor still hands effects its pointer and clicks - #1219
Merged
EtienneLescot merged 1 commit intoOct 14, 2026
Merged
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
3 tasks done
EtienneLescot
force-pushed
the
feat/shader-effects-macos
branch
from
October 14, 2026 16:23
80c6dde to
e16a014
Compare
EtienneLescot
changed the base branch from
feat/shader-effects-macos
to
integration/shader-effects
October 14, 2026 17:46
…clicks Effects read ctx.cursor and ctx.clicks from plan_cursor, which returns None when the cursor is not drawn: with Show cursor off, or during auto-hide, a ripple on click never fired and an effect following the mouse lost it, in preview and export, on every backend. - frame_geometry: effect_pointer places the pointer and the last clicks as plan_cursor places the cursor (a shared CursorPlacer), whether or not the cursor is drawn. ctx.cursor.z is 0 only when the recording hid the pointer or a zoom leaves it out of frame; earlier clicks stay. CursorPlan drops the two fields only effects read. - The three backends build one CursorPlanInput for the cursor and the effects, and compute the effect pointer only for a scene with effects. - Tests: the geometry with the cursor shown, hidden by the user and hidden by the recording; on the Metal device (and its D3D11 and wgpu mirrors), an effect that paints ctx.cursor.z and ctx.clicks[0].w sees both under a hidden cursor, and saw neither before the fix. - Spec C.2 and native-compositor.md say what a hidden cursor hands an effect.
EtienneLescot
marked this pull request as ready for review
October 14, 2026 17:49
EtienneLescot
force-pushed
the
fix/shader-effects-hidden-cursor
branch
from
October 14, 2026 17:49
9bc1564 to
d284cbc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Effects read
ctx.cursorandctx.clicksfromplan_cursor, which returnsNonewhen the cursor is not drawn. With Show cursor off, during auto-hide, or under a zoom'shideCursor, a ripple on click never fired and an effect that follows the mouse lost it, in preview and export, on every backend.Targets
integration/shader-effects, rebased on it after #1206 merged: the effect inputs now carry the footage plane next to the pointer and clicks.frame_geometry.rs.effect_pointerplaces the pointer and the last four clicks asplan_cursorplaces the cursor (through aCursorPlacerthe two now share), whether or not the cursor is drawn.ctx.cursor.zis 0 only when the recording hid the pointer, or when a zoom leaves it out of frame. Earlier clicks stay.CursorPlandropspointerandclicks, which only effects read.CursorPlanInputfor the cursor and for the effects, and compute the effect pointer only when the scene has effects.native-compositor.mdsay what a hidden cursor hands an effect.Related issue
Part of the shader effects work (#1199, #1202, #1206).
Type of change
Release impact
Desktop impact
Testing
cargo test -p openscreen-compositor --lib --tests, 450 lib tests pass.ctx.cursor.zred andctx.clicks[0].wgreen comes out yellow. It came out black before the fix.