mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 06:00:06 +01:00
mi: Fix block handler wrapping in miSprite
miSpriteBlockHandler was leaving the BlockHandler wrapped until just before calling any nested block handler. If any code executed before that added or removed block handlers, the wrapping chain would have been broken. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
08fc33042c
commit
a1189fe322
1 changed files with 2 additions and 2 deletions
|
|
@ -520,6 +520,8 @@ miSpriteBlockHandler(ScreenPtr pScreen, void *pTimeout,
|
|||
miCursorInfoPtr pCursorInfo;
|
||||
Bool WorkToDo = FALSE;
|
||||
|
||||
SCREEN_PROLOGUE(pPriv, pScreen, BlockHandler);
|
||||
|
||||
for (pDev = inputInfo.devices; pDev; pDev = pDev->next) {
|
||||
if (DevHasCursor(pDev)) {
|
||||
pCursorInfo = MISPRITE(pDev);
|
||||
|
|
@ -543,8 +545,6 @@ miSpriteBlockHandler(ScreenPtr pScreen, void *pTimeout,
|
|||
}
|
||||
}
|
||||
|
||||
SCREEN_PROLOGUE(pPriv, pScreen, BlockHandler);
|
||||
|
||||
(*pScreen->BlockHandler) (pScreen, pTimeout, pReadmask);
|
||||
|
||||
if (WorkToDo)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue