From 0e723d3b1ed31ffae4d467e11184ba444a3b917a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 26 Sep 2025 16:13:58 +0200 Subject: [PATCH] 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: b60581e393c1365c5fb90bf60cd9fac98562fd3e Bug: https://github.com/X11Libre/xserver/issues/959 Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86xv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xfree86/common/xf86xv.c b/hw/xfree86/common/xf86xv.c index d12ce370e9..444fde7e5a 100644 --- a/hw/xfree86/common/xf86xv.c +++ b/hw/xfree86/common/xf86xv.c @@ -251,6 +251,7 @@ xf86XVScreenInit(ScreenPtr pScreen, XF86VideoAdaptorPtr * adaptors, int num) pScrn = xf86ScreenToScrn(pScreen); + dixScreenHookWindowDestroy(pScreen, xf86XVWindowDestroy); dixScreenHookClose(pScreen, xf86XVCloseScreen); ScreenPriv->WindowExposures = pScreen->WindowExposures;