public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* clipboard integration doesn't work
@ 2011-02-06 21:49 Paul Maier
  2011-02-07 17:36 ` Jon TURNEY
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Maier @ 2011-02-06 21:49 UTC (permalink / raw)
  To: cygwin-xfree

Hi,

I have problems with my clipboard integration.

When I select something in X, the Windows clipboard gets cleared, 
so there is some interaction between X' and Windows' clipboards.
But no data is transferred from X to Windows or vice versa.

I am running cygwin-1.7.7-1 (downloaded 2010-11-02) on a Windows XP SP 3.
I am starting X with:
/bin/startxwin -- /bin/XWin -emulate3buttons 100

I also tried to add an explicit -clipboard parameter, but that doesn't 
change anything.
(According to the man page of XWin, -clipboard is set by default.)

Does anybody have an advice?

Thanks a lot!
Paul


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: clipboard integration doesn't work
  2011-02-06 21:49 clipboard integration doesn't work Paul Maier
@ 2011-02-07 17:36 ` Jon TURNEY
  2011-02-08  1:44   ` AW: " Paul Maier
  0 siblings, 1 reply; 6+ messages in thread
From: Jon TURNEY @ 2011-02-07 17:36 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: svn-user

On 06/02/2011 21:49, Paul Maier wrote:
> I have problems with my clipboard integration.
> 
> When I select something in X, the Windows clipboard gets cleared, 
> so there is some interaction between X' and Windows' clipboards.
> But no data is transferred from X to Windows or vice versa.
> 
> I am running cygwin-1.7.7-1 (downloaded 2010-11-02) on a Windows XP SP 3.
> I am starting X with:
> /bin/startxwin -- /bin/XWin -emulate3buttons 100
> 
> I also tried to add an explicit -clipboard parameter, but that doesn't 
> change anything.
> (According to the man page of XWin, -clipboard is set by default.)

This is correct.

> Does anybody have an advice?

Problems like this are occasionally reported, but I've never been able to
reproduce them.

Can you give a detailed set of reproduction steps e.g. what application are
your cutting from, pasting to?

Can you start your XWin with the additional option '-logverbose 3', and attach
the XWin.0.log generated when you reproduce the problem?

Are you running any Windows programs which continuously monitor the clipboard
like 'Clipbook Viewer', VNC client, etc.?

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* AW: clipboard integration doesn't work
  2011-02-07 17:36 ` Jon TURNEY
@ 2011-02-08  1:44   ` Paul Maier
  2011-02-08 14:12     ` Jon TURNEY
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Maier @ 2011-02-08  1:44 UTC (permalink / raw)
  To: cygwin-xfree

Hi Jon,

thanks for giving your attention to this.  8-)


> Can you give a detailed set of reproduction steps e.g. what 
> application are
> your cutting from, pasting to?

It is reproducable in both directions (Win -> X, X -> Win), with any
application on both sides.
So I choose a xterm with a vim for X, and a notepad for Windows.

/bin/startxwin -- /bin/XWin -emulate3buttons 100 -logverbose 3

As a setup I type "eins-zwei-drei" into X's vim, and "hallo" into the notepad.
Then I select the "eins-zwei-drei" text in X.
Then I select the "hallo" text in the notepad and press CONTROL C.

Effect: the highlighting of the text "eins-zwei-drei" in vim/X disappears
immediately.

Then in both editors I open a new line and paste the text of the clipboard in
it.
In vim/X it pastes "eins-zwei-drei" (using both mouse keys via middle mouse
button emulation).
In notepad it pasts "hello" (using CONTROL V).

Then I close both editors, kill XWin and get the Log.
-> See Log 1 (attached).


Now for the other direction:

/bin/startxwin -- /bin/XWin -emulate3buttons 100 -logverbose 3

As a setup I again type "eins-zwei-drei" into X's vim, and "hallo" into a
notepad.
Then I select the "hallo" text in the notepad and press CONTROL C.
I press CONTROL V several times to verify that I have selected something.
Notepad pastes: "hallo".
Then I select the "eins-zwei-drei" text in X/vim.

I check out the result:
I go back to the notepad and continue to press CONTROL V: nothing gets pasted
any more.
I go to the X/vim window, open a new vim line and
(using both mouse keys via middle mouse button emulation) I check what gets
pasted: "eins-zwei-drei".

Then I close both editors, kill XWin and get the Log.
-> See Log 2 (attached).


In both logs I found the name of my PC and my user name, and I replaced that
information by XXX.


> Are you running any Windows programs which continuously 
> monitor the clipboard
> like 'Clipbook Viewer', VNC client, etc.?

Sorry, I don't know these programs.

Regards,
  Paul.
 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: AW: clipboard integration doesn't work
  2011-02-08  1:44   ` AW: " Paul Maier
@ 2011-02-08 14:12     ` Jon TURNEY
  2011-02-08 23:55       ` Jon TURNEY
  0 siblings, 1 reply; 6+ messages in thread
From: Jon TURNEY @ 2011-02-08 14:12 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: Paul Maier

On 08/02/2011 01:44, Paul Maier wrote:
>> Can you give a detailed set of reproduction steps e.g. what 
>> application are
>> your cutting from, pasting to?
> 
> It is reproducable in both directions (Win -> X, X -> Win), with any
> application on both sides.
> So I choose a xterm with a vim for X, and a notepad for Windows.
> 
> /bin/startxwin -- /bin/XWin -emulate3buttons 100 -logverbose 3
> 
> As a setup I type "eins-zwei-drei" into X's vim, and "hallo" into the notepad.
> Then I select the "eins-zwei-drei" text in X.
> Then I select the "hallo" text in the notepad and press CONTROL C.
> 
> Effect: the highlighting of the text "eins-zwei-drei" in vim/X disappears
> immediately.
> 
> Then in both editors I open a new line and paste the text of the clipboard in
> it.
> In vim/X it pastes "eins-zwei-drei" (using both mouse keys via middle mouse
> button emulation).
> In notepad it pasts "hello" (using CONTROL V).
> 
> Then I close both editors, kill XWin and get the Log.
> -> See Log 1 (attached).
> 
> 
> Now for the other direction:
> 
> /bin/startxwin -- /bin/XWin -emulate3buttons 100 -logverbose 3
> 
> As a setup I again type "eins-zwei-drei" into X's vim, and "hallo" into a
> notepad.
> Then I select the "hallo" text in the notepad and press CONTROL C.
> I press CONTROL V several times to verify that I have selected something.
> Notepad pastes: "hallo".
> Then I select the "eins-zwei-drei" text in X/vim.
> 
> I check out the result:
> I go back to the notepad and continue to press CONTROL V: nothing gets pasted
> any more.
> I go to the X/vim window, open a new vim line and
> (using both mouse keys via middle mouse button emulation) I check what gets
> pasted: "eins-zwei-drei".
> 
> Then I close both editors, kill XWin and get the Log.
> -> See Log 2 (attached).
> 
> 
> In both logs I found the name of my PC and my user name, and I replaced that
> information by XXX.

Thanks very much for the detailed steps and the logs.

Can I also see your cygcheck output in the form suggested by the link at the
bottom of this mail?

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

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: AW: clipboard integration doesn't work
  2011-02-08 14:12     ` Jon TURNEY
@ 2011-02-08 23:55       ` Jon TURNEY
  2011-02-09 11:34         ` AW: " Paul Maier
  0 siblings, 1 reply; 6+ messages in thread
From: Jon TURNEY @ 2011-02-08 23:55 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: Paul Maier

On 08/02/2011 01:26, Paul Maier wrote:
> thanks for giving your attention to this.  8-)
>
>
>> Can you give a detailed set of reproduction steps e.g. what
>> application are
>> your cutting from, pasting to?
>
> It is reproducable in both directions (Win -> X, X -> Win), with any
> application on both sides.
> So I choose a xterm with a vim for X, and a notepad for Windows.

[...]
winClipboardProc - Warning: Locale not supported by X.
[...]
winClipboardFlushXEvents - SelectionRequest - X*TextListToTextProperty failed: -2
[...]
winClipboardFlushXEvents - SelectionNotify - X*TextPropertyToTextList returned: -2
[...]

> Can I also see your cygcheck output in the form suggested by the link at the
> bottom of this mail?

LC_ALL = 'de_DE.CP1252'

Oh dear :-(  It looks like this is going to be broken for all locales which
use a Windows codepage encoding, since Xlib knows nothing about them.

As a workaround, you could perhaps set your locale to de_DE.ISO8859-1 (which
is a subset of CP1252), if you actually need to work with CP1252 encoded data,
or de_DE.UTF-8 if you don't.

I'm not sure what to do about fixing this.  Prior to Xserver 1.7.1-2 it would
just refuse to start with unsupported locales.  I guess we should at least
fallback to setting the C locale if the current locale isn't supported by X.
I'm not sure I want try adding all the possible codepage locales which Cygwin
supports to the X locale tables.

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* AW: AW: clipboard integration doesn't work
  2011-02-08 23:55       ` Jon TURNEY
@ 2011-02-09 11:34         ` Paul Maier
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Maier @ 2011-02-09 11:34 UTC (permalink / raw)
  To: cygwin-xfree



> As a workaround, you could perhaps set your locale to 
> de_DE.ISO8859-1 (which
> is a subset of CP1252), if you actually need to work with 
> CP1252 encoded data,


Hi Jon, that WORKS!!  8-)))

Thanks for the help. It's fine for me now.
Paul


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-09 11:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 21:49 clipboard integration doesn't work Paul Maier
2011-02-07 17:36 ` Jon TURNEY
2011-02-08  1:44   ` AW: " Paul Maier
2011-02-08 14:12     ` Jon TURNEY
2011-02-08 23:55       ` Jon TURNEY
2011-02-09 11:34         ` AW: " Paul Maier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).