feat(floating-window): add pixel-based positioning support #2073
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
Changes
Core Layer (
src/)make-view-with-pixels,set-view-pos-pixels,set-view-size-pixels) with fallback to character-based methodsfloating-window-set-pixel-position,floating-window-set-pixel-size,floating-window-pixel-bounds)make-view-from-windowto use pixel coordinates for floating windows when supportedServer Frontend (
frontends/server/)support-pixel-positioningcapabilityJavaScript Client (
frontends/server/frontend/)Demo Extension (
extensions/pixel-demo/)pixel-demo-animate)pixel-demo-follow-mouse)pixel-demo-debug)pixel-demo-compare)Tests (
tests/)Test Plan
.qlot/bin/rove lem-tests.asd.qlot/bin/rove extensions/pixel-demo/lem-pixel-demo.asdM-x pixel-demo-animate- floating window bounces smoothlyM-x pixel-demo-follow-mouse- window follows mouse cursor at pixel precisionM-x pixel-demo-compare- visual comparison of smooth vs jerky movementGenerated with Claude Code