> Thanks. This works when run on Mac and Windows, but it has no effect
> when the program
> is run on a Linux box and displayed back on a Windows box running
> cygwin.
> Brandon McCombs wrote:
> >> In the code before you display the dialog, get the current location for
[quoted text clipped - 7 lines]
>
> Is that using the usual Cygwin 'xwin' with the 'multiwindow' option?
Yes.
> How are you connecting to the Linux box? If with ssh,
Yes.
> are you port-forwarding
> the X session (-X or -Y option to ssh), or using a DISPLAY with the IP address
> of the windows box?
I don't invoke ssh with the -X or -Y option, but I don't explicitly
set DISPLAY
either. I just ssh in, and it works. If I look at $DISPLAY it's set to
something
like "localhost:11.0"
> If you log directly into the Linux box, does the technique work then?
I don't know - my only access to the linux box is via ssh from my
Windows box.
-larry
Lew - 05 Jan 2008 00:35 GMT
Lew wrote:
>> are you port-forwarding
>> the X session (-X or -Y option to ssh), or using a DISPLAY with the IP address
>> of the windows box?
> I don't invoke ssh with the -X or -Y option,
It must be set in your ssh_config then.
> but I don't explicitly set DISPLAY either.
> I just ssh in, and it works. If I look at $DISPLAY it's set to
> something like "localhost:11.0"
This value shows us that it is a port-forwarded DISPLAY, so the X events are
traveling through the tunnel. Non-port-forwarded would be a non-localhost
address.
>> If you log directly into the Linux box, does the technique work then?
> I don't know - my only access to the linux box is via ssh from my
> Windows box.
I can think of no reason why the technique should fail in your scenario. Too
bad we can't see what happens natively on the Linux box.
Can you debug, e.g., run the program through your IDE, and see what values are
come in when you
>> get the current location for the parent window
in order to
>> pass those values as arguments into the setLocation() method for the dialog itself
(Brandon McCombs)?
This would narrow the behavior down to whether you're getting wrong
coordinates or failing to set correct ones.

Signature
Lew