From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23085 invoked by alias); 21 Oct 2013 14:46:17 -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 23073 invoked by uid 89); 21 Oct 2013 14:46:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailhost.tue.nl Received: from mailhost.tue.nl (HELO mailhost.tue.nl) (131.155.2.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Mon, 21 Oct 2013 14:46:15 +0000 Received: from pastinakel.tue.nl (localhost [127.0.0.1]) by mailhost.tue.nl (Postfix) with ESMTP id 74A9873162 for ; Mon, 21 Oct 2013 16:46:12 +0200 (CEST) Received: from mailhost.tue.nl ([131.155.2.19]) by pastinakel.tue.nl (pastinakel.tue.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZjOYH68muCBN for ; Mon, 21 Oct 2013 16:46:12 +0200 (CEST) Received: from svlin011.win.tue.nl (svlin011.win.tue.nl [131.155.69.113]) by mailhost.tue.nl (Postfix) with ESMTP id 4E34273156 for ; Mon, 21 Oct 2013 16:46:12 +0200 (CEST) Received: by svlin011.win.tue.nl (Postfix, from userid 5052) id 341D243B85; Mon, 21 Oct 2013 16:46:12 +0200 (CEST) Date: Mon, 21 Oct 2013 14:46:00 -0000 From: Reinier Post To: cygwin-xfree@cygwin.com Subject: Re: Clipboard periodically breaks Message-ID: <20131021144612.GB5297@win.tue.nl> Mail-Followup-To: cygwin-xfree@cygwin.com 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5244D2C9.9000401@codespunk.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-10/txt/msg00033.txt.bz2 On Thu Sep 26 20:35:21 2013, matt@codespunk.com (Matt D.) wrote: > Jon, > > Thanks for looking into this. I can confirm that your changes > correct the issue where highlighting next would cause arbitrary > pastes to occur. Good work! > > I also concede that there does not seem to be a good solution to > transparently fix the two-to-one clipboard issue; as XWin may indeed > be able to interpret calls to X's two clipboards, there wouldn't be > any reasonable way for it to identify which clipboard is actually > being used. I'm reading this wich much interest: for me, too, copy-pasting between Windows applications and Cygwin xterms to break after some time, and this has been happening for a year or so. I'm not aware of doing anything special to cause it to break, but the only way I know how to fix it is to restart X. This is with recent Cygwin packages on Windows 7. I haven't tested with a newer build of the X server. > 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? As an interested bystander, I have no doubt that that type of specific solution to specific clipboard interaction problems can possibly work, but using them will require detailed knowledge of how the X and Windows clipboards interact. My question is different: is it possible to implement the interaction in such a way that a user such as me, who is not aware of any subtleties, can get consistency, in the sense that all copy-paste actions between X an Windows that work when X is started continue to work in the same way for the duration of the session? > Matt D. -- Reinier Post TU Eindhoven -- 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/