[EMAIL PROTECTED] writes:
> If X doesn't like them, why is it okay for a child (windows/win.c
> WIN_CreateWindowEx):
>
> if(cs->style & WS_CHILD)
> {
> if(cs->cx < 0) cs->cx = 0;
> if(cs->cy < 0) cs->cy = 0;
> }
> else
> {
> if (cs->cx <= 0) cs->cx = 1;
> if (cs->cy <= 0) cs->cy = 1;
> }
Wine does not create X windows for child windows. But the test in the
x11drv is based on the parent window, not on the WS_CHILD style, which
may cause it to fall through the cracks if the app passes the desktop
window as parent (the WS_CHILD style does not necessarily reflect the
position in the hierarchy, in typical Microsoft logic).
Anyway the whole zero-size logic should probably be moved to the
x11drv, since this is an X11-specific issue; and someday there should
be a major cleanup of the WS_CHILD-implies-child-window assumptions
throughout the code...
--
Alexandre Julliard
[EMAIL PROTECTED]