Display *display;
Window win;
XEvent report;
- int x=10,y=10,h=100,w=400;
+ int x=10,y=10,h=100,w=400,b=10;
XSizeHints *hints;
display = XOpenDisplay(NULL);
}
win = XCreateWindow(display, RootWindow(display, 0),
- x, y, w, h, 10, CopyFromParent, CopyFromParent,
+ x, y, w, h, b, CopyFromParent, CopyFromParent,
CopyFromParent, 0, NULL);
hints = XAllocSizeHints();
XSetWMNormalHints(display, win, hints);
XFree(hints);
- XSetWindowBackground(display,win,WhitePixel(display,0));
+ XSetWindowBackground(display,win,WhitePixel(display,0));
XMapWindow(display, win);
XFlush(display);
- XMoveResizeWindow(display, win, 960-1, 600-1, 600, 150);
- /*XResizeWindow(display, win, 600, 150);*/
+ w = 600;
+ h = 160;
+ XMoveResizeWindow(display, win, 1172-w-b*2, 668-h-b*2, w, h);
+ XFlush(display);
+ sleep(1);
+ XResizeWindow(display, win, 900, 275);
XSelectInput(display, win, ExposureMask | StructureNotifyMask);