public inbox for cygwin-xfree@sourceware.org help / color / mirror / Atom feed
From: "Øyvind Harboe" <oyvind.harboe@zylin.com> To: cygwin-xfree@cygwin.com Subject: Fix to stop xwinclip from clobbering remote clipboard Date: Tue, 23 Dec 2003 18:26:00 -0000 [thread overview] Message-ID: <1072179661.1858.22.camel@famine> (raw) I'm going out on a limb here, as my experience with xfree86 is extremely limited. Perhaps there is an option to achieve what I'm suggesting here. Oh well! :-) xwinclip is clobbering the clipboard when I work w/e.g. OpenOffice: - If I copy and paste a spreadsheet cell while xwinclip is running, only the value is copied. - If xwinclip is not running, I can copy and paste formulas without problems. AFAICT, xwinclip clobbers the remote clipboard by doing a "conversion round-trip": remote clipboard->windows clipboard->remote clipboard. Such round trip conversions are inheritely lossy and should be avoided. After examining the source code(see below), I've come up with the following "scheme" for a fix: - register a new dummy windows clipboard data type, e.g. named "REMOTEDATA". - whenever xwinclip updates the Windows clipboard, it also invokes SetClipboardData(REMOTEDATA, dummyval). - whenever xwinclip executes a paste from the Windows clipboard to e.g. an OpenOffice spreadsheet not running under Windows, xwinclip first checks if REMOTEDATA is present in the Windows clipboard. If the flag is present, xwinclip effectively needs to do nothing because the remote clipboard already contains the correct data. http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xwin/winclipboardxevents.c Ãyvind
next reply other threads:[~2003-12-23 11:41 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-12-23 18:26 Øyvind Harboe [this message] 2003-12-23 19:02 ` Kensuke Matsuzaki 2003-12-23 19:18 ` Harold L Hunt II 2004-01-05 10:34 ` Hr. Daniel Mikkelsen 2004-01-05 19:20 ` Harold L Hunt II
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1072179661.1858.22.camel@famine \ --to=oyvind.harboe@zylin.com \ --cc=cygwin-xfree@cygwin.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).