Posted: Fri Mar 28, 2008 10:48 am Post subject: Get display?
I have a gtk program with a GtkWindow. Now I want to get the address to the current display, cause I want to use the function
Code: (Plaintext)
1 2 3 4
XF86VidModeGetModeLine(Display *display,
int screen,
int *dotclock_return,
XF86VidModeModeLine *modeline);
To get the current modeline. The dotclock_return and modline variables are set by the function and does not have to be preset.
I have looked at this page and tried to find out which function to use, but every function seems to be connected to some kind of object and I don't know how to get those objects. Isn't it just possible to get a pointer to the current display that is viewing right at the moment or the display that the window is in? I also want to get the number of the screen to be able to call the function properly.