Commit cca4bc34 authored by Andres Rodriguez's avatar Andres Rodriguez
Browse files

xf86: Disable unused crtc functions when a lease is revoked

This fixes 'non-desktop' displays staying powered on after their lease
has been revoked.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111620


Cc: Keith Packard <keithp@keithp.com>
Signed-off-by: Andres Rodriguez's avatarAndres Rodriguez <andresx7@gmail.com>
parent 0f19381f
Pipeline #65619 passed with stages
in 10 minutes and 6 seconds
......@@ -2210,6 +2210,7 @@ xf86CrtcLeaseTerminated(RRLeasePtr lease)
{
int c;
int o;
ScrnInfoPtr scrn = xf86ScreenToScrn(lease->screen);
RRLeaseTerminated(lease);
/*
......@@ -2240,6 +2241,10 @@ xf86CrtcLeaseTerminated(RRLeasePtr lease)
xf86CrtcCheckReset(crtc);
}
}
/* Power off if necessary */
xf86DisableUnusedFunctions(scrn);
RRLeaseFree(lease);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment