Motif call to get the X server display address
Hello experts,
Is there a motif call to get the address of the X display currently
being used by the motif app ?
I am spawning a java GUI application from inside the motif
application. Everything works fine if $DISPLAY is set. But when target
Xserver is specified using '-display ' option, the spawned java GUI
wont get the X display address and thus fails to start. So i need to
pass the DISPLAY in environ[] while exec'ing the java GUI.
Thanks in advance,
Best regards,
Pavan
Re: Motif call to get the X server display address
[email]pavan.alampalli@gmail.com[/email] wrote:[color=blue]
> Hello experts,
>
> Is there a motif call to get the address of the X display currently
> being used by the motif app ?
>
> I am spawning a java GUI application from inside the motif
> application. Everything works fine if $DISPLAY is set. But when target
> Xserver is specified using '-display ' option, the spawned java GUI
> wont get the X display address and thus fails to start. So i need to
> pass the DISPLAY in environ[] while exec'ing the java GUI.[/color]
Try XDisplayString(display)
This is an Xlib macro.
Still not an expert.
Dušan Peterc
[url]http://www.arahne.si[/url]