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 <andresx7@gmail.com>
This commit is contained in:
parent
63346c7439
commit
5aadaac949
|
@ -2226,6 +2226,7 @@ xf86CrtcLeaseTerminated(RRLeasePtr lease)
|
|||
{
|
||||
int c;
|
||||
int o;
|
||||
ScrnInfoPtr scrn = xf86ScreenToScrn(lease->screen);
|
||||
|
||||
RRLeaseTerminated(lease);
|
||||
/*
|
||||
|
@ -2256,6 +2257,10 @@ xf86CrtcLeaseTerminated(RRLeasePtr lease)
|
|||
xf86CrtcCheckReset(crtc);
|
||||
}
|
||||
}
|
||||
|
||||
/* Power off if necessary */
|
||||
xf86DisableUnusedFunctions(scrn);
|
||||
|
||||
RRLeaseFree(lease);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue