From: Pierre Ossman Date: Tue, 5 Jan 2021 09:26:10 +0000 (+0100) Subject: Update desktop if clipboard client goes away X-Git-Tag: v1.11.90~69^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1169%2Fhead;p=tigervnc.git Update desktop if clipboard client goes away So the current clipboard state is properly reflected in the desktop session. --- diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index fe060857..ae51a61b 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -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