#include #include #include #include #include #include void xsetroot(char* text) { static Display *dpy; static int screen; static Window root; dpy = XOpenDisplay(NULL); screen = DefaultScreen(dpy); root = RootWindow(dpy, screen); XStoreName(dpy, root, "test aaaa name"); XCloseDisplay(dpy); }