#include #include #include #include int main(void) { Display *display; Window window; XEvent event; int screen; d = XOpenDisplay(NULL); if (d == NULL) { fprintf(stderr, "Cannot open display\n"); exit(1); } screen = DefaultScreen(display); w = XCreateSimpleWindow(display, RootWindow(display, screen), 10, 10, 100, 100, 1, BlackPixel(d, s), WhitePixel(d, s)); //last arg is color return 0; }