macbook: patch aquamarine legacy-iface cursor null bug

This commit is contained in:
rope 2026-07-25 08:54:10 +01:00
parent 2244f339c9
commit 41cbc1dd6f

View file

@ -54,6 +54,19 @@
# wait_prepare/wait_finish were removed from struct vb2_ops in Linux 6.8
nixpkgs.overlays = [
# Legacy DRM iface (AQ_NO_ATOMIC): every commit without cursor flags
# hits the else-branch and nulls the cursor plane → cursor vanishes
# whenever it isn't moving (vfr=false commits every frame). Only null
# it when the cursor is actually meant to be hidden. Bug present
# upstream as of aquamarine 0.11.0 / main (July 2026).
(final: prev: {
aquamarine = prev.aquamarine.overrideAttrs (old: {
postPatch = (old.postPatch or "") + ''
sed -i 's|} else if (drmModeSetCursor(|} else if (!connector->output->cursorVisible \&\& drmModeSetCursor(|' \
src/backend/drm/impl/Legacy.cpp
'';
});
})
(final: prev: {
linuxPackages_6_12 = prev.linuxPackages_6_12.extend (lpFinal: lpPrev: {
facetimehd = lpPrev.facetimehd.overrideAttrs (old: {