From 20094daaf1b98d03619b50670903daffe3919139 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 3 Oct 2024 21:28:51 +0700 Subject: [PATCH] don't send clipboard packets to servers that don't want them --- html5/js/Client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html5/js/Client.js b/html5/js/Client.js index e809c4cf..13625b36 100644 --- a/html5/js/Client.js +++ b/html5/js/Client.js @@ -2556,6 +2556,9 @@ class XpraClient { this._connection_change(); } + // don't send clipboard packets to servers that don't want them: + this.clipboard_enabled = Boolean(hello["clipboard"] || false); + // file transfer attributes: this.remote_file_size_limit = hello["max-file-size"]; this.remote_file_chunks = Math.max(0, Math.min(this.remote_file_size_limit, hello["file-chunks"] || 0));