[openbox] Window geometry information.
Harald Studer
hs at lexip.ch
Fri Jan 9 05:24:12 EST 2004
You can do it like this:
[..]
void myGetGeometry(Window win,
int *rx, int *ry, unsigned int *rw, unsigned int *rh)
{
Window root, cw, parent, *children, lwin;
int nchildren, i, x, y, xf, yf;
unsigned int ui, w, h, bwf;
XGetGeometry(xs.disp, win, &root, &i, &i, &w, &h, &ui, &ui);
XTranslateCoordinates(xs.disp, win, root, 0, 0, &x, &y, &lwin);
*rw = w;
*rh = h;
*rx = x;
*ry = y;
}
[..]
greets harald
More information about the openbox
mailing list