#include #include #include #include #include int main (int argc, char **argv) { XRRScreenConfiguration *xr_screen_conf; if (XInitThreads() == 0) { printf ("XInitThreads() failed\n"); return 1; } gtk_init (&argc, &argv); XLockDisplay (GDK_DISPLAY()); xr_screen_conf = XRRGetScreenInfo (GDK_DISPLAY(), GDK_ROOT_WINDOW()); XUnlockDisplay (GDK_DISPLAY()); return 0; }