Repository navigation
[ryoku] fix(wayfire): make the HDR toggle actually engage - #946
LangerSword wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
neur0map
left a comment
There was a problem hiding this comment.
🔍 Review findings — 2 blocking issue(s): see the inline comments and the walkthrough for details.
| if live() && os.Getenv("WLR_RENDERER") != "vulkan" { | ||
| // GLES2 cannot apply the colour transform the HDR toggle needs, so | ||
| // a live session on it must not offer the control. Offline probes | ||
| // never reach this branch and keep the full manifest. | ||
| kept := out[:0] | ||
| for _, c := range out { | ||
| if c != wm.CapOutputHdr { |
There was a problem hiding this comment.
🟡 minor · Maintainability · fix: low effort
Hiding the HDR control is a user-facing change, but the PR contains no matching area changelog note. Add a note describing when the control is available.
Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.
🦊 mika's reviewIncremental review: new commits since the last checkpoint. Summary
Change diagramflowchart LR
Env["User manager environment"] --> Wrapper["SDDM session wrapper"]
Wrapper -->|WLR_RENDERER| Session["Wayfire session"]
Session --> Caps["Wayfire HDR capability"]
Caps --> Hub["Displays controls"]
Estimated review effort: 3/5 · risk: medium 📁 Walkthrough details
|
neur0map
left a comment
There was a problem hiding this comment.
🔍 Review findings — 1 blocking issue(s): see the inline comments and the walkthrough for details.
| t.Run("offline probe keeps the manifest", func(t *testing.T) { | ||
| // socketPath also scans XDG_RUNTIME_DIR for a live socket, so an | ||
| // empty WAYFIRE_SOCKET alone is not offline on a compositor desktop. | ||
| t.Setenv("XDG_RUNTIME_DIR", t.TempDir()) |
There was a problem hiding this comment.
🟡 minor · Maintainability · fix: low effort
Commit 9e5d4db2 has no scope or colon in its subject. Change it to the required [area] scope: summary format before merging.
Reply here to discuss, say it's fixed, or explain why it's intended — no mention needed.
9e5d4db to
7b15094
Compare
neur0map
left a comment
There was a problem hiding this comment.
🔴 Changes requested — 0 critical and 1 major issue(s): see the inline comments and the walkthrough for fixes and an agent-ready prompt.
|
Fixed the findings: the session-wrapper comment no longer names a compositor, the area changelog note is in, and the renderer tests isolate |
Note: Fixed: HDR renderer gate now passes WM isolation, changelog, and test isolation checks
7b15094 to
9914432
Compare
Blocking findings were addressed (verified at 99144324ed).
|
VERSION is restored to |
Sipper1236
left a comment
There was a problem hiding this comment.
Nice fix—the HDR control now follows the live renderer, and the session-wrapper test covers the environment handoff. Approved.
|
@Sipper1236 This is approved at current head |
|
Thanks for the work here, Wayfire is on its way out of Ryoku so I'm not adding more to it and I'm closing this one |
Fixes Ryoku-dev/ryoku #933 — Wayfire HDR toggle never engages.
Wayfire 0.11 / wlroots 0.20 only applies output colour transforms with the Vulkan renderer, but the SDDM Wayland session wrapper dropped
WLR_RENDERERfrom the environment it imports, so anenvironment.doverride never reached the compositor. The Hub also advertised the HDR capability unconditionally, offering a control Wayfire could not honour on GLES2.ryoku-wayland-session: importWLR_RENDERERalongside the other selected environment variables.wayfire/caps.go: in live sessions, dropwm.CapOutputHdrunlessWLR_RENDERER=vulkan; offline installer/doctor probes keep the full manifest.This keeps Vulkan opt-in rather than forcing an experimental renderer; docs were not changed in this PR.
Verification:
go test ./...inryoku/wmpasses all four packages;gofmt -landgit diff --checkclean. No competing PR was found for #933, and my other open PRs in this repo (#928, #929, #936) do not touch these files.

Confidence Score: 5/5
The reviewed changes appear safe to merge.Summary
The session launcher now carries the user's renderer choice into the desktop, and Wayfire hides HDR controls in live sessions unless Vulkan is selected.
No new actionable issues found.
Reviews (6) · Last reviewed commit: "[ryoku] wayfire: gate the HDR capability" · Reviewed by Greptile