This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: -clipboard not working?


Ok, just upgraded to the latest packages, and this is still problematic. I
can copy from (say nedit) to the same window, but when I paste in a windows
app, the app hangs. I just checked my XWin.log and I get:

winClipboardWindowProc - WM_DRAWCLIPBOARD - Initializing - Returning.
winProcSetSelectionOwner - OpenClipboard () failed: 00000000
winProcSetSelectionOwner - OpenClipboard () failed: 00000000
winProcSetSelectionOwner - OpenClipboard () failed: 00000000
winProcSetSelectionOwner - OpenClipboard () failed: 00000000
winProcSetSelectionOwner - OpenClipboard () failed: 00000000
winProcSetSelectionOwner - OpenClipboard () failed: 00000000

The same occurs with, say, xterm.

My knowledge of the windows clipboard is somewhat limited, though I think
OpenClipboard returns a BOOL, so maybe printing the result of FormatMessage
with FORMAT_MESSAGE_FROM_SYSTEM and GetLastError() might be of more use than
the 0! 
A quick look at the SDK doc said "The window identified by the hWndNewOwner
parameter does not become the clipboard owner unless the EmptyClipboard
function is called." I don't know if that is relevant, just might be!
Thanks again,

Ben

-----Original Message-----
From: cygwin-xfree-owner@cygwin.com [mailto:cygwin-xfree-owner@cygwin.com]
On Behalf Of Harold L Hunt II
Sent: 14 March 2004 19:11
To: cygwin-xfree@cygwin.com
Subject: Re: -clipboard not working?

Ben Jackson wrote:

> Hi,
> I've been recently unable to paste into windows apps from x apps (since
> about -50 release I think). The windows apps just hang.
> I've seen some info on this on the list, but I didn't see a fix :x
> There doesn't appear to be anything of note in /tmp/XWin.log and I just
> upgraded to all the latest packages and uninstalled all the "removed"
> packages.
> 
> Any ideas?

No ideas.  I will have to look into this soon.

Harold


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]