summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-03-19 13:38:02 +0000
committerPierre Ossman <ossman@cendio.se>2009-03-19 13:38:02 +0000
commite24614471d3496e547a809601d87959675e73f67 (patch)
tree2c06e8ace024e3c68a20e13ae00ab242d0c0961f /unix
parent6a47dcc1ce2658b552ea2a1fae973750b81bbf87 (diff)
downloadtigervnc-e24614471d3496e547a809601d87959675e73f67.tar.gz
tigervnc-e24614471d3496e547a809601d87959675e73f67.zip
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
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/vncHooks.cc7
1 files changed, 7 insertions, 0 deletions
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);