At 11:02 AM 5/16/00 -0400, you wrote:
<snip>
>Now the owner of the managed windows shows up on the system
>tray as well.  This is a tiny (1x1) window that is hardly
>visible.

Is it really a 1x1 window ? This would be ugly under Windows; it
would appear as a point on the desktop. As a wild guess, I think that
the app creates a 0x0 window and it's changed to a 1x1 window in
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;
    }      

This does not happen under Windows; a window created with
0 width and height stays at these values and is not shown at all
whatever it's style (WS_VISIBLE or not) - the window rect is 0x0.

My understanding is that with X it's not possible to create a window
with null dimensions, hence the code to force a 1x1 window in this
case  (there is a similar hack in X11DRV_WND_SetParent)

An interesting approach could be to not show the window in this
case (0 width or 0 height), but it would be difficult - it would
be necessary to create or delete the X counterpart when the dimensions
of a 'native' window are changed

Gerard

Reply via email to