mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -538,6 +538,7 @@ msBlockHandler(ScreenPtr pScreen, void *pTimeout, void *pReadmask)
|
||||
|
||||
pScreen->BlockHandler = ms->BlockHandler;
|
||||
pScreen->BlockHandler(pScreen, pTimeout, pReadmask);
|
||||
ms->BlockHandler = pScreen->BlockHandler;
|
||||
pScreen->BlockHandler = msBlockHandler;
|
||||
if (pScreen->isGPU)
|
||||
dispatch_slave_dirty(pScreen);
|
||||
|
||||
Reference in New Issue
Block a user