xfree86: xv: fix missed hooking of WindowDestroy

Forgot to register window destroy hook - that's leading to crash:

    https://github.com/X11Libre/xserver/issues/959

Fixes: b60581e393
Bug: https://github.com/X11Libre/xserver/issues/959
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-26 16:13:58 +02:00
committed by Enrico Weigelt
parent 1439fc7aa1
commit 0e723d3b1e

View File

@@ -251,6 +251,7 @@ xf86XVScreenInit(ScreenPtr pScreen, XF86VideoAdaptorPtr * adaptors, int num)
pScrn = xf86ScreenToScrn(pScreen);
dixScreenHookWindowDestroy(pScreen, xf86XVWindowDestroy);
dixScreenHookClose(pScreen, xf86XVCloseScreen);
ScreenPriv->WindowExposures = pScreen->WindowExposures;