Audio/AudioControl: Lots of fixes
[audiocontrol.git] / winmove.c
1 // $Id$
2 //
3 // Copyright (C) 2007 
4
5 #include <Xlib.h>
6 #include <Xutil.h>
7 #include <stdlib.h>
8 #include <stdio.h>
9
10 int main(int argc, char ** argv)
11 {
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);
18
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);
22     return 0;
23 }
24
25 \f
26 // Local Variables:
27 // mode: c++
28 // compile-command: "gcc -Wall -o winmove winmove.c -I/usr/include/X11 -lX11"
29 // End: