xopendisplay no display varibale declared

2010-09-22 Thread yoni dana
Hello 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? thank you yoni

Re: xopendisplay no display varibale declared

2010-09-22 Thread Glynn Clements
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

Re: xopendisplay no display varibale declared

2010-09-22 Thread Glynn Clements
yoni dana wrote: 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, What problem? The reason i need to use XOpenDisplay is to retrieve screen resolution. Is there another way to do