Re: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

2012-04-17 Thread Jon TURNEY
On 09/04/2012 16:53, Bennett, Tony wrote:
> The fix continues to work well...
> ...will this fix be integrated into X soon...???

Thanks for testing.

Unfortunately, this fix seems to break other clipboard uses (In my testing,
copying from a native Firefox to cygwin X emacs didn't work anymore), so I
need to find the time to look at it some more before I can include it.

-- 
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/



RE: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

2012-04-09 Thread Bennett, Tony
Jon,

The fix continues to work well...
...will this fix be integrated into X soon...???

-tony

-Original Message-
From: Jon TURNEY 
Sent: Saturday, February 18, 2012 8:18 AM
Subject: Re: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

On 15/02/2012 16:26, Bennett, Tony wrote:
> Given that I'd have to "build" xclipboard for the host that I'm XDMCPing to,
> and that host is running AIX... Sadly, I may just have to "live" with the 
> problem.
> 
> Is there any hope that the issue will be corrected in the foreseeable 
> future...???

Well, looking at the rate of progress on fd.o bug #5735, it seems reasonable
to hope that it will be fixed in a year or two :-)

I've applied the patch I've suggested there to today's snapshot, uploaded a at
[1]. Perhaps you could try that out and see if that improves things for you?

[1] ftp://cygwin.com/pub/cygwinx/XWin.20120218-git-c3b936a38812f88b.exe.bz2

-

Jon,

I downloaded, bunzip2, and installed the new version of Xwin.

I restarted Xwin using the new version.

I ran some preliminary cut and paste tests, and it seems to work
correctly... i.e. I can perform multiple "cut from Xwin &  Paste to WinXP",
without intervening "cut from WinXP & Paste to Xwin" without error.

I will continue running the new version while I perform my daily work, and
will advise you if I have a recurrence of the problem.

Thanks a lot for this temporary fix.

-tony

--
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/


--
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/



RE: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

2012-02-20 Thread Bennett, Tony
-Original Message-
From: Jon TURNEY 
Sent: Saturday, February 18, 2012 8:18 AM
Subject: Re: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

On 15/02/2012 16:26, Bennett, Tony wrote:
> Given that I'd have to "build" xclipboard for the host that I'm XDMCPing to,
> and that host is running AIX... Sadly, I may just have to "live" with the 
> problem.
> 
> Is there any hope that the issue will be corrected in the foreseeable 
> future...???

Well, looking at the rate of progress on fd.o bug #5735, it seems reasonable
to hope that it will be fixed in a year or two :-)

I've applied the patch I've suggested there to today's snapshot, uploaded a at
[1]. Perhaps you could try that out and see if that improves things for you?

[1] ftp://cygwin.com/pub/cygwinx/XWin.20120218-git-c3b936a38812f88b.exe.bz2

-

Jon,

I downloaded, bunzip2, and installed the new version of Xwin.

I restarted Xwin using the new version.

I ran some preliminary cut and paste tests, and it seems to work
correctly... i.e. I can perform multiple "cut from Xwin &  Paste to WinXP",
without intervening "cut from WinXP & Paste to Xwin" without error.

I will continue running the new version while I perform my daily work, and
will advise you if I have a recurrence of the problem.

Thanks a lot for this temporary fix.

-tony

--
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/



Re: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

2012-02-18 Thread Jon TURNEY
On 15/02/2012 16:26, Bennett, Tony wrote:
> Given that I'd have to "build" xclipboard for the host that I'm XDMCPing to,
> and that host is running AIX... Sadly, I may just have to "live" with the 
> problem.
> 
> Is there any hope that the issue will be corrected in the foreseeable 
> future...???

Well, looking at the rate of progress on fd.o bug #5735, it seems reasonable
to hope that it will be fixed in a year or two :-)

I've applied the patch I've suggested there to today's snapshot, uploaded a at
[1]. Perhaps you could try that out and see if that improves things for you?

[1] ftp://cygwin.com/pub/cygwinx/XWin.20120218-git-c3b936a38812f88b.exe.bz2

-- 
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/



RE: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

2012-02-15 Thread Bennett, Tony


>On 13/02/2012 23:05, Bennett, Tony wrote:
>>> On 03/02/2012 22:55, Bennett, Tony wrote:
 Often when "cutting" from Xwin and attempting to "Paste" to a WindowsXP 
 application,
 the "most recent" "cut" is not pasted... but instead a "previous" Xwin 
 "cut".

 In other words, this scenario:

 LOCATIONACTComment
 XwinCut "abc"
 WinXP   Paste   correctly pastes "abc"
 Xwin   Cut "def"
 WinXP   Paste   Incorrectly pastes "abc"

 When the above problem occurs, no matter how many times a "cut" from Xwin,
 Whenever I paste on WinXP it pastes "abc".

 I can "correct" the problem by "cutting" from WinXP and pasting into 
 Xwin...
 ...after doing this the next Xwin "cut" will "correctly" paste on WinXP.
>>>
>>> Yes, this is a rather long-standing problem (see the bug report at [1] for
>>> some of the technical details), which is unfortunately not easy to fix in a
>>> way that works well for all cases.
>>>
>>> Fortunately, there is a simple workaround for the moment: If you install and
>>> run xclipboard, that will cause XWin to notice every change of the clipboard
>>> contents.
>> 
>> Thanks for the reply, Jon.
>> 
>> Exactly "how" do I use xclipboard...???
>> 
>> Here's how I'm starting Xwin right now in a 
>> Windows Script called startx.bat:
>> 
>>  @echo off
>>  C:
>> 
>>  chdir C:\cygwin\bin
>> 
>>  bash -c "PATH=$PATH:/bin:/usr/bin;XWin -clipboard -logverbose 3 -ac 
>> -query cdcxvd0559.con-way.com -fp 
>> \"tcp/cdcxvd0559.con-way.com:8000,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,/usr/share/fonts/Type1/\"
>>   &"
>> 
>> 
>> You'll notice I use XDMCP to establish a CDE session on cdcxvd0559...
>> 
>> I've tried starting xclipboard in the same script, after starting Xwin
>> (and sometimes even specifying -noclipboard)... and I always get
>> an IO error and X-win dies.
>
>Ah. Applying this workaround is perhaps not so simple when using XDMCP :-(
>
>You can't just add a 'xclipboard' line after 'XWin &', because the X server
>may still be starting up when xclipboard tries to start, which will fail.
>
>However, this shouldn't lead to the X server itself dying.
>
>It's possible to put a wait here, but there are a couple of other reasons why
>this approach won't work well.
>
>You might find it easier to start xclipboard on the host you are XDMCPing to,
>possibly as part of your login script there
>

Jon,

Given that I'd have to "build" xclipboard for the host that I'm XDMCPing to,
and that host is running AIX... Sadly, I may just have to "live" with the 
problem.

Is there any hope that the issue will be corrected in the foreseeable 
future...???

-tony


--
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/



Re: FW: RE: Cut and Paste between X and WindowsXP sometimes fails

2012-02-15 Thread Jon TURNEY
On 13/02/2012 23:05, Bennett, Tony wrote:
>> On 03/02/2012 22:55, Bennett, Tony wrote:
>>> Often when "cutting" from Xwin and attempting to "Paste" to a WindowsXP 
>>> application,
>>> the "most recent" "cut" is not pasted... but instead a "previous" Xwin 
>>> "cut".
>>>
>>> In other words, this scenario:
>>>
>>> LOCATIONACTComment
>>> XwinCut "abc"
>>> WinXP   Pastecorrectly pastes "abc"
>>> XwinCut "def"
>>> WinXP   PasteIncorrectly pastes "abc"
>>>
>>> When the above problem occurs, no matter how many times a "cut" from Xwin,
>>> Whenever I paste on WinXP it pastes "abc".
>>>
>>> I can "correct" the problem by "cutting" from WinXP and pasting into Xwin...
>>> ...after doing this the next Xwin "cut" will "correctly" paste on WinXP.
>>
>> Yes, this is a rather long-standing problem (see the bug report at [1] for
>> some of the technical details), which is unfortunately not easy to fix in a
>> way that works well for all cases.
>>
>> Fortunately, there is a simple workaround for the moment: If you install and
>> run xclipboard, that will cause XWin to notice every change of the clipboard
>> contents.
> 
> Thanks for the reply, Jon.
> 
> Exactly "how" do I use xclipboard...???
> 
> Here's how I'm starting Xwin right now in a 
> Windows Script called startx.bat:
> 
>   @echo off
>   C:
> 
>   chdir C:\cygwin\bin
> 
>   bash -c "PATH=$PATH:/bin:/usr/bin;XWin -clipboard -logverbose 3 -ac 
> -query cdcxvd0559.con-way.com -fp 
> \"tcp/cdcxvd0559.con-way.com:8000,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,/usr/share/fonts/Type1/\"
>   &"
> 
> 
> You'll notice I use XDMCP to establish a CDE session on cdcxvd0559...
> 
> I've tried starting xclipboard in the same script, after starting Xwin
> (and sometimes even specifying -noclipboard)... and I always get
> an IO error and X-win dies.

Ah. Applying this workaround is perhaps not so simple when using XDMCP :-(

You can't just add a 'xclipboard' line after 'XWin &', because the X server
may still be starting up when xclipboard tries to start, which will fail.

However, this shouldn't lead to the X server itself dying.

It's possible to put a wait here, but there are a couple of other reasons why
this approach won't work well.

You might find it easier to start xclipboard on the host you are XDMCPing to,
possibly as part of your login script there

-- 
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/



FW: RE: Cut and Paste between X and WindowsXP sometimes fails

2012-02-13 Thread Bennett, Tony
>On 03/02/2012 22:55, Bennett, Tony wrote:
>> Often when "cutting" from Xwin and attempting to "Paste" to a WindowsXP 
>> application,
>> the "most recent" "cut" is not pasted... but instead a "previous" Xwin "cut".
>> 
>> In other words, this scenario:
>> 
>> LOCATIONACTComment
>> XwinCut "abc"
>> WinXP   Paste correctly pastes "abc"
>> Xwin Cut "def"
>> WinXP   Paste Incorrectly pastes "abc"
>> 
>> When the above problem occurs, no matter how many times a "cut" from Xwin,
>> Whenever I paste on WinXP it pastes "abc".
>> 
>> I can "correct" the problem by "cutting" from WinXP and pasting into Xwin...
>> ...after doing this the next Xwin "cut" will "correctly" paste on WinXP.
>
>Yes, this is a rather long-standing problem (see the bug report at [1] for
>some of the technical details), which is unfortunately not easy to fix in a
>way that works well for all cases.
>
>Fortunately, there is a simple workaround for the moment: If you install and
>run xclipboard, that will cause XWin to notice every change of the clipboard
>contents.

Thanks for the reply, Jon.

Exactly "how" do I use xclipboard...???

Here's how I'm starting Xwin right now in a 
Windows Script called startx.bat:

@echo off
C:

chdir C:\cygwin\bin

bash -c "PATH=$PATH:/bin:/usr/bin;XWin -clipboard -logverbose 3 -ac 
-query cdcxvd0559.con-way.com -fp 
\"tcp/cdcxvd0559.con-way.com:8000,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,/usr/share/fonts/Type1/\"
  &"


You'll notice I use XDMCP to establish a CDE session on cdcxvd0559...

I've tried starting xclipboard in the same script, after starting Xwin
(and sometimes even specifying -noclipboard)... and I always get
an IO error and X-win dies.

-tony



--
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/



Re: Cut and Paste between X and WindowsXP sometimes fails

2012-02-13 Thread Jon TURNEY
On 03/02/2012 22:55, Bennett, Tony wrote:
> Often when "cutting" from Xwin and attempting to "Paste" to a WindowsXP 
> application,
> the "most recent" "cut" is not pasted... but instead a "previous" Xwin "cut".
> 
> In other words, this scenario:
> 
> LOCATIONACTComment
> XwinCut "abc"
> WinXP   Paste  correctly pastes "abc"
> Xwin  Cut "def"
> WinXP   Paste  Incorrectly pastes "abc"
> 
> When the above problem occurs, no matter how many times a "cut" from Xwin,
> Whenever I paste on WinXP it pastes "abc".
> 
> I can "correct" the problem by "cutting" from WinXP and pasting into Xwin...
> ...after doing this the next Xwin "cut" will "correctly" paste on WinXP.

Yes, this is a rather long-standing problem (see the bug report at [1] for
some of the technical details), which is unfortunately not easy to fix in a
way that works well for all cases.

Fortunately, there is a simple workaround for the moment: If you install and
run xclipboard, that will cause XWin to notice every change of the clipboard
contents.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=5735

-- 
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/



Cut and Paste between X and WindowsXP sometimes fails

2012-02-03 Thread Bennett, Tony
Often when "cutting" from Xwin and attempting to "Paste" to a WindowsXP 
application,
the "most recent" "cut" is not pasted... but instead a "previous" Xwin "cut".

In other words, this scenario:

LOCATIONACTComment
XwinCut "abc"
WinXP   Pastecorrectly pastes "abc"
XwinCut "def"
WinXP   PasteIncorrectly pastes "abc"

When the above problem occurs, no matter how many times a "cut" from Xwin,
Whenever I paste on WinXP it pastes "abc".

I can "correct" the problem by "cutting" from WinXP and pasting into Xwin...
...after doing this the next Xwin "cut" will "correctly" paste on WinXP.


Below is the start of my Xwin.0.log.

Thanks for any advise.
-tony

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.11.4.0
OS: Windows XP Service Pack 3 [Windows NT 5.1 build 2600] (Win32)
Package: version 1.11.4-2 built 2012-01-31

XWin was started with the following command line:

XWin -clipboard -logverbose 3 -ac -query cdcxvd0559.con-way.com -fp 
 
tcp/cdcxvd0559.con-way.com:8000,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,/usr/share/fonts/Type1/
 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 1440 h 900
winInitializeDefaultScreens - native DPI x 96 y 96
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/ITG914257:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
XDMCP warning: INET6 UDP socket creation failed
[  2930.843] OsVendorInit - Creating default screen 0
[  2930.843] winInitializeScreens - 1
[  2930.843] winInitializeScreen - 0
[  2930.859] winValidateArgs - Returning.
[  2930.859] (II) xorg.conf is not supported
[  2930.859] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more 
information
[  2930.859] (++) FontPath set to 
"tcp/cdcxvd0559.con-way.com:8000,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,/usr/share/fonts/Type1/"
[  2930.859] LoadPreferences: /home/trbennett/.XWinrc not found
[  2930.859] LoadPreferences: Loading /etc/X11/system.XWinrc
[  2930.859] LoadPreferences: Done parsing the configuration file...
[  2930.859] winGetDisplay: DISPLAY=:0.0
[  2930.859] winDetectSupportedEngines - DirectDraw installed, allowing ShadowDD
[  2930.859] winDetectSupportedEngines - Windows NT, allowing PrimaryDD
[  2930.859] winDetectSupportedEngines - DirectDraw4 installed, allowing 
ShadowDDNL
[  2930.859] winDetectSupportedEngines - Returning, supported engines 001f
[  2930.859] winTaskbarInit - Could not get SHGetPropertyStoreForWindow address
[  2930.859] [  2930.859] winMsgWindowThreadProc - Hello

--
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/