Fix to stop xwinclip from clobbering remote clipboard

Kensuke Matsuzaki zakki@peppermint.jp
Tue Dec 23 19:02:00 GMT 2003


Ø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



More information about the Cygwin-xfree mailing list