Skip to content

Commit

Permalink
Merge branch 'clipboard_contains' of https://github.com/samhed/TigerVNC
Browse files Browse the repository at this point in the history
Only announce clipboard for plain text data
  • Loading branch information
samhed authored Oct 1, 2024
2 parents dce6061 + 8a80c90 commit 2f53c28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vncviewer/Viewport.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 2f53c28

Please sign in to comment.