delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/17/10:07:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=oEoHXhqMH6+Ueo4B0m3bacfRNbOu1
6F0IX+8nR1qBzKXR67RYFVCmFcGeA6rToGi0Q/fqcCxEg1jzf9mCJQwEu8P58qpU
J9DXo7+nZWNq3EF7sLgUdZ2HRCntJYen7eFOpPniAFJiVpk/YKJ+8sBq8oZqnQRI
Zv+RbBD069+qYM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=yRe59NnOwIn9Nx07/7UvB6lR6CA=; b=c9f
7tKrzqHuXtlnPD+mVak3i0kc4ZMjj4OLDR5wOsNBye80c7FKwM45inoR6NZmXLtz
lT9V8F+FrbzK0ifbvnexW7tcA3VY2jc0n3+Tm3W24RP6w0PInXr+NL6T8qWiQjx2
AXbeTbvE29S8xasxgy89C4a2Z25tANqTwKB07MB4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,MIME_BASE64_BLANKS autolearn=ham version=3.3.2
X-HELO: USA7109MR004.ACS-INC.COM
From: "Nellis, Kenneth" <Kenneth DOT Nellis AT xerox DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Cygwin clipboard flaky on Windows 7
Date: Fri, 17 Oct 2014 14:07:27 +0000
Message-ID: <0D835E9B9CD07F40A48423F80D3B5A702E835603@USA7109MB022.na.xerox.net>
References: <5440FD4E DOT 7040304 AT stenton DOT me DOT uk>
In-Reply-To: <5440FD4E.7040304@stenton.me.uk>
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id s9HE7loW004348

From: Chris Stenton
> 
> After 4 years I've just upgrade to version :-
> 
> CYGWIN_NT-6.1 mars 1.7.32(0.274/5/3) 2014-08-13 23:03 i686 Cygwin
> 
> I use the following batch file :-
> 
> run XWin :1 -clipboard -nodecoration -notrayicon -dpi 100  -query machine
> -from xxx.xxx.xxx.xxx -once
> 
> on my windows 7 machine.
> 
> When X is first started and with one "windows notepad" open I can bi-
> directionally  cut and paste between the MS and X windows world.
> However, it seems  that if I have multiple MS windows open then I can't
> cut from MS windows and paste into the X world. It still works for X world
> to MS World.
> 
> Sadly I wrote over my old version which did not have this issue. Is there
> any fix for this?
> 
> Thanks
> 
> Chris

This is interesting because just yesterday I was extensively copying
and pasting from a pair of Notepad windows into my Mintty/bash session
using getclip, and occasionally it would just paste in a single garbage
character. So, this is different from the OP in that X is not involved.

After seeing this post, I tried for nearly a half hour trying to
discern a repeatable pattern to exhibit this behavior, but failed.
Don't want to inject red herrings here, but I've only noticed this
with two Notepad windows open and copying alternately from either.
Also, it seems that selecting new notepad text, but neglecting to 
Ctrl+C may be somehow involved. Again, I've tried many combinations of 
this and have not been able to discern any pattern of when failure
occurs.

This one non-repeatable failure may be illustrative. Consider two
Notepad windows open, A and B, and a mintty/bash shell window open.
The following steps produced failure:

Select text from A, Ctrl-C, getclip (worked), select text from B,
Ctrl-C, getclip (worked), click somewhere in A to deselect text,
click somewhere in B to deselect text, getclip (failed!).

FWIW:

$ uname -srvmo
CYGWIN_NT-6.1 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64 Cygwin
$ /usr/lib/csih/winProductName
Microsoft Windows 7 Enterprise Edition, 64-bit Service Pack 1 (build 7601)
$ getclip --version
getclip is part of cygutils version 1.4.14
  Copy the Windows Clipboard to stdout

$ cygcheck -c cygutils
Cygwin Package Information
Package              Version        Status
cygutils             1.4.14-1       OK
$ cygcheck -c cygwin
Cygwin Package Information
Package              Version        Status
cygwin               1.7.32-1       OK
$

--Ken Nellis

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019