From 461ec27a580f717a1f19a7a6fb124d8fb1b48a01 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 12 Feb 2011 16:43:12 +0000 Subject: [PATCH] Workaround for old clients not specifying a receiving property atom that I just found in ICCCM. git-svn-id: svn://svn.tartarus.org/sgt/utils@9088 cda61777-01e9-0310-a592-d414129be87e --- xcopy/xcopy.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xcopy/xcopy.c b/xcopy/xcopy.c index 2ee43c6..1c030b3 100644 --- a/xcopy/xcopy.c +++ b/xcopy/xcopy.c @@ -519,6 +519,16 @@ Atom convert_sel_inner(Window requestor, Atom target, Atom property) { } Atom convert_sel_outer(Window requestor, Atom target, Atom property) { + /* + * ICCCM 2.2 says that obsolete clients requesting the selection + * request may not specify a property name under which they want + * the data written to their window; selection owners are + * encouraged to support such clients by reusing the selection + * target name as the property. + */ + if (property == None) + property = target; + if (target == multiple_atom) { /* * Support for the MULTIPLE selection type, since it's -- 2.11.0