mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-16 16:24:00 -04:00
displays: send the vrr setting on the wlr-output path (#3701)
* displays: send the vrr setting on the wlr-output path The toggle shown on compositors without their own output writer (sway, labwc, ...) was dropped when the heads were built, so it never applied. Co-Authored-By: Claude Opus 5.5 <[email protected]> * remove test --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: bbedward <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
bbedward
parent
fb1686888d
commit
a8bb04a2b2
@@ -210,6 +210,10 @@ Singleton {
|
||||
head.scale = output.logical.scale ?? 1.0;
|
||||
head.transform = OutputModel.transformIndex(output.logical.transform);
|
||||
}
|
||||
|
||||
// Only heads that reported adaptive sync (wlr-output-management v4) accept set_adaptive_sync.
|
||||
if (output.vrr_supported)
|
||||
head.adaptiveSync = output.vrr_enabled ? 1 : 0;
|
||||
}
|
||||
heads.push(head);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user