gerard patel wrote:
> 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

Yes, the app creates a 0x0 window, which is does not show up
under Windows.  Could we just flip the WS_VISIBLE bit to not
show it?  

Sue

Reply via email to