diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index ad7a6e8de..fb6d43229 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -754,6 +754,11 @@ void Viewport::handleClipboardChange(int source, void *data) return; #endif + if (!Fl::clipboard_contains(Fl::clipboard_plain_text)) { + vlog.debug("Got non-plain text in local clipboard, ignoring."); + return; + } + self->clipboardSource = source; if (!self->hasFocus()) {