On 1/27/06, Denis Oliver Kropp <[EMAIL PROTECTED]> wrote:
> Mike Emmel wrote:
> > On 1/27/06, Denis Oliver Kropp <[EMAIL PROTECTED]> wrote:
> >
> >>Mike Emmel wrote:
> >>
> >>>Hi Denis it was my understanding they by default if a window is 100%
> >>>clear i.e alpha=0 that it will not receive events by default is this
> >>>true or false ?
> >>>Note this is different from being shaped.
> >>
> >>The alpha channel only matters if DWOP_SHAPED is used.
> >>
> >
> > So hidden windows with alpha 0 still get events ?
> > It would be nice to distinguish a totally clear window an not receive 
> > events.
> > This is different from being shaped I think.
> > The problem is we are using alpha to mean shown or hidden.
>
> 1. Why should one create a completely transparent window?
> 2. It would be too expensive to check for it :)
>
Thats how we attache the windows in directfb before there shown.
There is no concept of a hide and show in directfb so we use the clear window
to represent a hidden window.  The problem is unless the shaped bit is set they
get events. When there shown then the opacity is set to 0xFF ( should
be the default value but that can be fixed easily ).

Since its the global opacity I don't think its expensive to check for
I like the idea of just using global opacity and not having hidden
windows but we do need a way to turn of events when the windows are
"hidden".
My view with shaped windows is that there expensive for mouse event
handling is this not true ?

So I'd like to have a flag

When visible and global alpha is zero do not recieve events.

Also I'm on the road moving to CA this hotel happend to have internet but my
contact will be spotty for about a week. This is important and we need
to solve it so bear with me if I drop out of contact for a few days.


Mike

> --
> Best regards,
>    Denis Oliver Kropp
>
> .------------------------------------------.
> | DirectFB - Hardware accelerated graphics |
> | http://www.directfb.org/                 |
> "------------------------------------------"
>

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to