Skip to content

Commit 2f53c28

Browse files
authored
Merge branch 'clipboard_contains' of https://github.com/samhed/TigerVNC
Only announce clipboard for plain text data
2 parents dce6061 + 8a80c90 commit 2f53c28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vncviewer/Viewport.cxx

+5
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,11 @@ void Viewport::handleClipboardChange(int source, void *data)
754754
return;
755755
#endif
756756

757+
if (!Fl::clipboard_contains(Fl::clipboard_plain_text)) {
758+
vlog.debug("Got non-plain text in local clipboard, ignoring.");
759+
return;
760+
}
761+
757762
self->clipboardSource = source;
758763

759764
if (!self->hasFocus()) {

0 commit comments

Comments
 (0)