#include #include #include Display *display; int screen; Window root, window; XEvent event; int main(int argc, char *argv[]) { display=XOpenDisplay(NULL); screen=DefaultScreen(display); root=DefaultRootWindow(display); /* create window and all related resources */ window=XCreateWindow(display, root, 0, 0, 640, 480, 0, DefaultDepth(display, screen), InputOutput, DefaultVisual(display, screen), 0, NULL); while(1) { XUnmapWindow(display, window); XMapWindow(display, window); } }