Repository navigation
Multi-PC: Rulers on screens can measure a remote's selected screen - #838
Merged
Merged
Conversation
The toggle was disabled whenever the selected monitor was a remote's, a rule from before the rulers reached the remotes (#817). The scene only needs the selected panel's millimetres, which a remote's panel has in the layout like any other: the master's screens and the remotes' all measure it. The rule goes, the test that held it now checks the toggle is available, and a unit test checks both scenes measure a remote's panel (zero at the panel's own edge on the remote). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mgth
commented
Nov 25, 2026
mgth
left a comment
Owner
Author
There was a problem hiding this comment.
J’ai vérifié la sélection d’un écran distant en mode Placement. Les six tests de remote_rulers et le test des contrôles du panneau distant passent. Ils couvrent l’activation de la commande, les dimensions du panneau sélectionné sur les deux machines et le zéro de la règle sur l’écran distant. Aucun point à corriger relevé. L’affichage sur deux écrans physiques n’a pas été rejoué.
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.
"Rulers on screens" was greyed out when the selected screen was a remote's. Yet, turned on from a local screen, the rulers already showed on the remote's screens too (#817).
Cause
screen_overlay_controlsenabled the toggle only whenself.selected.is_some() && self.selected_remote().is_none(). The comment said the rulers are drawn on the selected screen, "which must be one of this machine's". That rule predates #817 and was never relaxed. A test held it.Change
depth_projection), which a remote's panel has like a local one. So nothing else changes: the master's screens (local_view) and each remote's (remote_rulers::wanted) all measure it. On the remote itself the zero falls at its own panel's edge.a_remote_monitor_carries_its_machine_and_keeps_local_only_controls_awaynow checks the toggle is available on a remote's screen.a_remotes_panel_selected_is_measured_on_every_screen: on the remote, its own length, from zero; on the master's screen, the remote panel's length.Checks
cargo test -p lbm-app: all pass.cargo clippy -p lbm-app --all-targets: clean.Not tried on real hardware
Not tried with
lbm-appon a real master: the window and the scenes are covered by tests only.docs/multi-pc.mdanddocs/multi-pc-etat.mdare updated (the "greyed" limit removed).🤖 Generated with Claude Code