質問

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?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top