Review everything shipped this weekend, and fix what the reviewers caught
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -61,14 +61,15 @@ jq -e 'all(. == false)' <<<"$invalid" >/dev/null || fail "an invalid layout was
|
||||
# canvas draws it on top of what it mirrors rather than at stale coordinates.
|
||||
mirror="$(qs_for_harness ipc call display-layout-test mirror)"
|
||||
#
|
||||
# The mirrored record keeps the coordinates it was stored with -- normalize
|
||||
# shifts everything by the primary's anchor, and applying that to a position
|
||||
# nothing reads back would be arithmetic for its own sake. It contributes
|
||||
# nothing to the bounds, so the desktop measures 3000 x 2000: one display.
|
||||
# The mirrored record is given its target's normalized position -- its stored
|
||||
# coordinates stopped meaning anything the moment mirroring was turned on, and
|
||||
# the compositor chooses the real ones. Keeping a stale pair would still draw
|
||||
# it somewhere false on the canvas. It contributes nothing to the bounds, so
|
||||
# the desktop measures 3000 x 2000: one display.
|
||||
jq -e '.valid == true
|
||||
and .normalized == [
|
||||
{"name":"DP-2","x":0,"y":0,"primary":true,"mirrorOf":""},
|
||||
{"name":"HDMI-A-1","x":3140,"y":80,"primary":false,"mirrorOf":"DP-2"}]
|
||||
{"name":"HDMI-A-1","x":0,"y":0,"primary":false,"mirrorOf":"DP-2"}]
|
||||
and .bounds == {"x":0,"y":0,"width":3000,"height":2000}
|
||||
and (.rects | length) == 2
|
||||
and .rects[1].mirrorOf == "DP-2" and .rects[1].mirrored == true
|
||||
|
||||
Reference in New Issue
Block a user