10 int main(int argc, char ** argv)
12 int winid = strtol(argv[1],0,0);
13 int x = strtol(argv[2],0,0);
14 int y = strtol(argv[3],0,0);
15 int w = strtol(argv[4],0,0);
16 int h = strtol(argv[5],0,0);
17 Display * display = XOpenDisplay(0);
19 printf("Window %d on %p -geometry %dx%d+%d+%d\n", winid, display, w,h,x,y);
20 XMoveResizeWindow(display, winid, x, y, w, h);
21 XSync(display, False);
28 // compile-command: "gcc -Wall -o winmove winmove.c -I/usr/include/X11 -lX11"