Int32Pointer x = bridge.createInt32Pointer(1, false);
Int32Pointer y = bridge.createInt32Pointer(1, false);
Int32Pointer w = bridge.createInt32Pointer(1, false);
Int32Pointer h = bridge.createInt32Pointer(1, false);
CLongPointer root = bridge.createCLongPointer(1, false);
Int32Pointer border = bridge.createInt32Pointer(1, false);
Int32Pointer depth = bridge.createInt32Pointer(1, false);
x11.XGetGeometry(display, windowID, root, x, y, w, h, border, depth);
long rootID = root.get(0);
CLongPointer childWindow = bridge.createCLongPointer(1, false);
x11.XTranslateCoordinates(display, getParentID(), rootID,
x.get(0), y.get(0), x, y, childWindow);
Point pos = new Point(x.get(0), y.get(0));
return pos;