p.h = adjustedHeight(p.h);
if (child) {
windowRect = new Rectangle(p.x, p.y, p.w, p.h);
}
XGraphicsConfiguration xgcfg =
(XGraphicsConfiguration) GraphicsEnvironment.
getLocalGraphicsEnvironment().getDefaultScreenDevice().
getDefaultConfiguration();
X11.XSetWindowAttributes setAttrs = x11.createXSetWindowAttributes(false);
setAttrs.set_colormap(xgcfg.getXColormap());
windowID = x11.XCreateWindow(
display, parentID,
p.x, p.y, p.w, p.h, 0,
xgcfg.getDepth(),
X11Defs.InputOutput,
xgcfg.getVisual(),
(long) (X11Defs.CWColormap),
setAttrs
);
/*