Get The Display Name of Xorg The Correct Way?

I have to get the display_name variable of an Xorg Display struct. (eg. display->display_name).

Right now I'm compiling with the XLIB_ILLEGAL_ACCESS define, which gives me direct access to the struct.

Is there a proper way to get this?

Answers


You probably need DisplayString(dpy) - see xdpyinfo source.


Need Your Help

How to find element with class on any depth using JQuery?

javascript jquery

I know that I have somewhere inside div on any depth ( maybe one or two or three, it changes over time ) with class="nested". How to find that element on any depth using JQuery ?

Theme assignment failing for jQuery Mobile on ASP.NET MVC 3

jquery asp.net-mvc asp.net-mvc-3 jquery-mobile

I'm trying to create a web application using ASP.NET MVC 3 and jQuery Mobile. All I am trying to do is get a simple page to run.