]> source.dussan.org Git - tigervnc.git/commitdiff
Update desktop if clipboard client goes away 1169/head
authorPierre Ossman <ossman@cendio.se>
Tue, 5 Jan 2021 09:26:10 +0000 (10:26 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 5 Jan 2021 09:26:10 +0000 (10:26 +0100)
So the current clipboard state is properly reflected in the desktop
session.

common/rfb/VNCServerST.cxx

index fe0608572f3b9a79187252196b7f4eb9c3b22f63..ae51a61b1118bb6aa743611b87a00141db36c8df 100644 (file)
@@ -169,7 +169,7 @@ void VNCServerST::removeSocket(network::Socket* sock) {
       if (pointerClient == *ci)
         pointerClient = NULL;
       if (clipboardClient == *ci)
-        clipboardClient = NULL;
+        handleClipboardAnnounce(*ci, false);
       clipboardRequestors.remove(*ci);
 
       // - Delete the per-Socket resources