From e24614471d3496e547a809601d87959675e73f67 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 19 Mar 2009 13:38:02 +0000 Subject: [PATCH] Restore Composite callback when we close the screen. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3691 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/xserver/hw/vnc/vncHooks.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unix/xserver/hw/vnc/vncHooks.cc b/unix/xserver/hw/vnc/vncHooks.cc index 1ec55de5..010e9550 100644 --- a/unix/xserver/hw/vnc/vncHooks.cc +++ b/unix/xserver/hw/vnc/vncHooks.cc @@ -318,6 +318,13 @@ static Bool vncHooksCloseScreen(int i, ScreenPtr pScreen_) pScreen->StoreColors = vncHooksScreen->StoreColors; pScreen->DisplayCursor = vncHooksScreen->DisplayCursor; pScreen->BlockHandler = vncHooksScreen->BlockHandler; +#ifdef RENDER + PictureScreenPtr ps; + ps = GetPictureScreenIfSet(pScreen); + if (ps) { + ps->Composite = vncHooksScreen->Composite; + } +#endif #ifdef RANDR rrScrPrivPtr rp; rp = rrGetScrPriv(pScreen); -- 2.39.5