Stephen H. Gerstacker
Stephen H. Gerstacker

Reputation: 763

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?

Upvotes: 1

Views: 2468

Answers (1)

Andrey Sidorov
Andrey Sidorov

Reputation: 25456

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

Upvotes: 4

Related Questions