This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Clipboard periodically breaks
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-xfree at cygwin dot com
- Cc: matt at codespunk dot com
- Date: Thu, 21 Nov 2013 17:50:57 +0000
- Subject: Re: Clipboard periodically breaks
- Authentication-results: sourceware.org; auth=none
- References: <51B4D075 dot 3050001 at tiscali dot co dot uk> <51B5D4E2 dot 20008 at dronecode dot org dot uk> <51B6479A dot 5050707 at tiscali dot co dot uk> <51C44820 dot 4010307 at dronecode dot org dot uk> <523E580D dot 8010807 at codespunk dot com> <524454A6 dot 8030503 at dronecode dot org dot uk> <5244D2C9 dot 9000401 at codespunk dot com> <20131021144612 dot GB5297 at win dot tue dot nl>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree <cygwin-xfree at cygwin dot com>
> On Thu Sep 26 20:35:21 2013, Matt D. wrote:
>> However, an environment variable that tells it which clipboard to
>> use would provide an immediate solution and be used used on a
>> per-application basis. For example, I can use aliases when launching
>> programs:
>>
>> $ xclip=clipboard1 gedit $@ (monitor only clipboard 1)
>> $ xclip=clipboard2 gedit $@ (monitor only clipboard 2)
>>
>> No option would indicate that both clipboard 1 and clipboard 2 would
>> be handled as they are now.
>>
>> I'm not familiar with X programming but I'm assuming here that it
>> would be possible for xclip to read from a particular process's own
>> environment (rather than xclip's own) while processing a clipboard
>> event to do this.
>>
>> What do you think?
This is not straightforward to implement and is not really a good solution as
it won't work for remote X clients.
In theory, it might be possible to annotate the X client window with a
property which tells XWin/xwinclip how to treat it's clipboard use, but since
the clipboard-owning window is often a hidden one, getting that property on
there poses problems.
Hopefully the -noprimary option makes this less of an issue.
--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/