]> source.dussan.org Git - tigervnc.git/commitdiff
Restore Composite callback when we close the screen.
authorPierre Ossman <ossman@cendio.se>
Thu, 19 Mar 2009 13:38:02 +0000 (13:38 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 19 Mar 2009 13:38:02 +0000 (13:38 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3691 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/xserver/hw/vnc/vncHooks.cc

index 1ec55de503dff25e3c119b68289d0dd97892b942..010e9550743674ca4548603ff266590c42cb3341 100644 (file)
@@ -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);