}
win = XCreateWindow(display, RootWindow(display, 0),
- x, y, w, h, 10, CopyFromParent, CopyFromParent,
+ x, y, w, h, 0, CopyFromParent, CopyFromParent,
CopyFromParent, 0, NULL);
- XSetWindowBackground(display,win,WhitePixel(display,0));
+ XSetWindowBackground(display,win,WhitePixel(display,0));
XSelectInput(display, win, (ExposureMask | StructureNotifyMask |
GravityNotify));
XMapWindow(display, win);
XFlush(display);
+ sleep(1);
+ XResizeWindow(display, win, w+5, h+5);
+ XMoveWindow(display, win, x, y);
+
while (1) {
XNextEvent(display, &report);