From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1526 invoked by alias); 23 Dec 2003 16:17:38 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 1518 invoked from network); 23 Dec 2003 16:17:37 -0000 Received: from unknown (HELO sv11.futurismworks.jp) (210.188.245.82) by sources.redhat.com with SMTP; 23 Dec 2003 16:17:37 -0000 Received: (qmail 11607 invoked from network); 23 Dec 2003 16:17:36 -0000 Received: from unknown (HELO mint.workgroup.peppermint.jp) (61.203.160.186) by 0 with SMTP; 23 Dec 2003 16:17:36 -0000 Date: Tue, 23 Dec 2003 19:02:00 -0000 Message-ID: From: Kensuke Matsuzaki To: cygwin-xfree@cygwin.com Subject: Re: Fix to stop xwinclip from clobbering remote clipboard In-Reply-To: <1072179661.1858.22.camel@famine> References: <1072179661.1858.22.camel@famine> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.4 (Hosorogi) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.4 - "Hosorogi") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2003-12/txt/msg00324.txt.bz2 List-Id: =D8yvind, The reason why non-text clipboard contents is lost is not that. To know windows clipboard change or not, you can use SetClipboardViewer and WM_DRAWCLIPBOARD. xwinclip clime CLIPBOARD ownership, but xwinclip can handle only XA_STRING, UTF8_STRING and COMPOUND_TEXT. xwinclip must hold all target to avoid clobbering X clipboard contents. GNOME Clipboard Manager seems to do those well. Perhaps their documents and code will help you. By the way, latest code is here. http://pdx.freedesktop.org/cgi-bin/viewcvs.cgi/xc/programs/Xserver/hw/xwin/= winclipboardxevents.c?cvsroot=3Dxorg&only_with_tag=3DCYGWIN&sortby=3Ddate --=20 Kensuke Matsuzaki mailto:zakki@peppermint.jp http://peppermint.jp