From 49122f6dccd836f0a4618247895fd4c5b8db7af0 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 5 Jan 2021 10:26:10 +0100 Subject: [PATCH] Update desktop if clipboard client goes away So the current clipboard state is properly reflected in the desktop session. --- common/rfb/VNCServerST.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5