From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22016 invoked by alias); 21 Nov 2013 17:51:09 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Received: (qmail 22000 invoked by uid 89); 21 Nov 2013 17:51:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: smtpout13.bt.lon5.cpcloud.co.uk Received: from Unknown (HELO smtpout13.bt.lon5.cpcloud.co.uk) (65.20.0.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Nov 2013 17:51:07 +0000 X-CTCH-RefID: str=0001.0A090202.528E4803.000F,ss=1,re=0.100,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-Junkmail-Premium-Raw: score=28/97,refid=2.7.2:2013.11.21.152115:17:28.905,ip=86.177.101.33,rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __HAS_FROM, __HAS_REPLYTO, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __TO_NO_NAME, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __IN_REP_TO, __CT, __CT_TEXT_PLAIN, __CTE, __SUBJ_ALPHA_NEGATE, __FORWARDED_MSG, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1200_1299, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, SXL_IP_DYNAMIC[33.101.177.86.fur], HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_2000_LESS, REPLYTO_FROM_DIFF_ADDY, BODY_SIZE_7000_LESS, NO_URI_FOUND X-CTCH-Spam: Unknown Received: from [192.168.1.72] (86.177.101.33) by smtpout13.bt.lon5.cpcloud.co.uk (8.6.100.99.10223) (authenticated as jonturney@btinternet.com) id 5285476F00797EDD; Thu, 21 Nov 2013 17:50:58 +0000 Message-ID: <528E4801.7000808@dronecode.org.uk> Date: Thu, 21 Nov 2013 17:51:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: matt@codespunk.com Subject: Re: Clipboard periodically breaks References: <51B4D075.3050001@tiscali.co.uk> <51B5D4E2.20008@dronecode.org.uk> <51B6479A.5050707@tiscali.co.uk> <51C44820.4010307@dronecode.org.uk> <523E580D.8010807@codespunk.com> <524454A6.8030503@dronecode.org.uk> <5244D2C9.9000401@codespunk.com> <20131021144612.GB5297@win.tue.nl> In-Reply-To: <20131021144612.GB5297@win.tue.nl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-11/txt/msg00013.txt.bz2 > 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/