chiark / gitweb /
wip fetching images from X
[ypp-sc-tools.main.git] / pctb / x-manip-window.c
index 7dd15a7e29b70516cebe2cab5c4f630d1ac955b2..33d08c2d26d47d685441a4e73009cbb1f77cf9c2 100644 (file)
@@ -20,7 +20,6 @@ static KeyCode keycode(const char *s) {
 int main(int argc, const char *const *argv) {
   char *ep;
   XWindowAttributes attr;
-  Window dummy;
   int xpos,ypos;
   unsigned width,height,bd,depth;
   int r;
@@ -34,6 +33,7 @@ int main(int argc, const char *const *argv) {
   r= XGetGeometry(disp,id, &attr.root,&xpos,&ypos,&width,&height, &bd,&depth);
   eassert(r);
 
+  Window dummy;
   r= XTranslateCoordinates(disp, id,attr.root, 160,160, &xpos,&ypos,
                           &dummy);
   eassert(r);