From 3027bc5705d3923581b1a025122db0e729b59fcf Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 6 Nov 2013 15:27:04 +0000 Subject: [PATCH] Some applications probe for clipboard formats using the trial-and-error method rather than asking for TARGETS. We need to make sure we properly report unsupported formats back to these. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5137 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/tx/TXWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/tx/TXWindow.cxx b/unix/tx/TXWindow.cxx index 2b535df8..12e6ebad 100644 --- a/unix/tx/TXWindow.cxx +++ b/unix/tx/TXWindow.cxx @@ -454,6 +454,8 @@ void TXWindow::handleXEvent(XEvent* ev) } else if (se.target == XA_STRING) { if (!selectionRequest(se.requestor, se.selection, se.property)) se.property = None; + } else { + se.property = None; } } XSendEvent(dpy, se.requestor, False, 0, (XEvent*)&se); -- 2.39.5