drivers/modesetting: Save current BlockHandler on return in msBlockHandler
If the BlockHandler chain is modified while it is active, we need to re-fetch the current value and store it in our private for use the next time through. Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
		
							parent
							
								
									b3e496c6d2
								
							
						
					
					
						commit
						3d12941b40
					
				|  | @ -538,6 +538,7 @@ msBlockHandler(ScreenPtr pScreen, void *pTimeout, void *pReadmask) | ||||||
| 
 | 
 | ||||||
|     pScreen->BlockHandler = ms->BlockHandler; |     pScreen->BlockHandler = ms->BlockHandler; | ||||||
|     pScreen->BlockHandler(pScreen, pTimeout, pReadmask); |     pScreen->BlockHandler(pScreen, pTimeout, pReadmask); | ||||||
|  |     ms->BlockHandler = pScreen->BlockHandler; | ||||||
|     pScreen->BlockHandler = msBlockHandler; |     pScreen->BlockHandler = msBlockHandler; | ||||||
|     if (pScreen->isGPU) |     if (pScreen->isGPU) | ||||||
|         dispatch_slave_dirty(pScreen); |         dispatch_slave_dirty(pScreen); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue