xopendisplay no display varibale declared

yoni dana dana.yoni at gmail.com
Wed Sep 22 08:47:40 PDT 2010


Hi
Thanks for display. I pass as a parameter :0.0 and it works.
But if i have a problem if two screen are connected to the computer or
remote desktop connection,
The reason i need to use XOpenDisplay is to retrieve screen resolution.
Is there another way to do it
thank you


On Wed, Sep 22, 2010 at 11:53 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
>
> yoni dana wrote:
>
>> I have a software which is loaded before the X server is running.
>> After the X server is up,I try to use the xopendisplay function with NULL ,
>> parameters and fails.(Reason no display parameter declared)
>> Any idea how to solve this problem?
>
> Either set $DISPLAY, or pass something other than NULL as the display
> argument to XOpenDisplay(). Ideally, the program should provide a
> -display switch to specify the display to connect to.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>



More information about the xorg mailing list