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
							
								
									0f19381f49
								
							
						
					
					
						commit
						cca4bc342c
					
				|  | @ -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); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue