Re: -clipboard not working?

2004-03-15 Thread Harold L Hunt II
You did get -r CYGWIN as specified on the server development page, right?

http://x.cygwin.com/devel/server/

Harold

Ben Jackson wrote:
Weird: I just did cvs update on my working copy of the source in order to
look at this, and I cant find the code below even with find in files. Is it
in a part other than programs/Xserver/hw/xwin ? a search on that directory
for "winProcSetSelectionOwner" returns nothing. The code I see is:
  if (!OpenClipboard (hwnd))
{
  ErrorF ("winClipboardFlushXEvents - SelectionRequest - "
  "OpenClipboard () failed: %08x\n",
  GetLastError ());
  pthread_exit (NULL);
}
is this a fix which is on its way? *hopes*
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alexander Gottwald
Sent: 15 March 2004 16:18
To: [EMAIL PROTECTED]
Subject: RE: -clipboard not working?
On Mon, 15 Mar 2004, Ben Jackson wrote:


I presume there are no system calls between OpenClipboard and
GetLastError?

It's a weird one certainly, if that's the case.


  /* Access the Windows clipboard */
  if (!OpenClipboard (g_hwndClipboard))
{
  ErrorF ("winProcSetSelectionOwner - OpenClipboard () failed: %08x\n",
  (int) GetLastError ());
  goto winProcSetSelectionOwner_Done;
}
bye
ago


RE: -clipboard not working?

2004-03-15 Thread Ben Jackson
Weird: I just did cvs update on my working copy of the source in order to
look at this, and I cant find the code below even with find in files. Is it
in a part other than programs/Xserver/hw/xwin ? a search on that directory
for "winProcSetSelectionOwner" returns nothing. The code I see is:
  if (!OpenClipboard (hwnd))
{
  ErrorF ("winClipboardFlushXEvents - SelectionRequest - "
  "OpenClipboard () failed: %08x\n",
  GetLastError ());
  pthread_exit (NULL);
}
is this a fix which is on its way? *hopes*

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alexander Gottwald
Sent: 15 March 2004 16:18
To: [EMAIL PROTECTED]
Subject: RE: -clipboard not working?

On Mon, 15 Mar 2004, Ben Jackson wrote:

> I presume there are no system calls between OpenClipboard and
GetLastError?
> It's a weird one certainly, if that's the case.

  /* Access the Windows clipboard */
  if (!OpenClipboard (g_hwndClipboard))
{
  ErrorF ("winProcSetSelectionOwner - OpenClipboard () failed: %08x\n",
  (int) GetLastError ());
  goto winProcSetSelectionOwner_Done;
}

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723



RE: -clipboard not working?

2004-03-15 Thread Alexander Gottwald
On Mon, 15 Mar 2004, Ben Jackson wrote:

> I presume there are no system calls between OpenClipboard and GetLastError?
> It's a weird one certainly, if that's the case.

  /* Access the Windows clipboard */
  if (!OpenClipboard (g_hwndClipboard))
{
  ErrorF ("winProcSetSelectionOwner - OpenClipboard () failed: %08x\n",
  (int) GetLastError ());
  goto winProcSetSelectionOwner_Done;
}

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


RE: -clipboard not working?

2004-03-15 Thread Ben Jackson
I presume there are no system calls between OpenClipboard and GetLastError?
It's a weird one certainly, if that's the case.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alexander Gottwald
Sent: 15 March 2004 15:50
To: [EMAIL PROTECTED]
Subject: RE: -clipboard not working?

On Mon, 15 Mar 2004, Ben Jackson wrote:

> 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: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> 
> 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! 

This is not the return value of OpenCliboard but the value of GetLastError
and it says "No error". This is sure an error in the api.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723



RE: -clipboard not working?

2004-03-15 Thread Alexander Gottwald
On Mon, 15 Mar 2004, Ben Jackson wrote:

> 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: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> winProcSetSelectionOwner - OpenClipboard () failed: 
> 
> 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! 

This is not the return value of OpenCliboard but the value of GetLastError
and it says "No error". This is sure an error in the api.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


RE: -clipboard not working?

2004-03-15 Thread Ben Jackson
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: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 
winProcSetSelectionOwner - OpenClipboard () failed: 

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Harold L Hunt II
Sent: 14 March 2004 19:11
To: [EMAIL PROTECTED]
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



Re: -clipboard not working?

2004-03-14 Thread Harold L Hunt II
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