This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Fix to stop xwinclip from clobbering remote clipboard
- From: Kensuke Matsuzaki <zakki at peppermint dot jp>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 24 Dec 2003 01:17:30 +0900
- Subject: Re: Fix to stop xwinclip from clobbering remote clipboard
- References: <1072179661.1858.22.camel@famine>
- Reply-to: cygwin-xfree at cygwin dot com
Øyvind,
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=xorg&only_with_tag=CYGWIN&sortby=date
--
Kensuke Matsuzaki
mailto:zakki@peppermint.jp
http://peppermint.jp