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
parent 56b47805a5
commit 6f3a4caf97

View File

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