Arvind Ayyangar wrote:
> Hi,
>     I am creating multiple windows in a loop with the StackingClass
> option as DWSC_UPPER.
> I want the new window created to come into focus only after the
> focused window is killed. I get the creating / deletion of new windows
> by adding hooks in DFB.

Why not just create, lower and then show the new window?

> So when a new window is created, I do a RaiseToTop and RequestFocus on
> the previous focused window. But somehow, the keyboard events are sent
> to the newly created window..

RequestFocus() should route keyboard events to the window.

Did RaiseToTop() work or did the new window also get to the front again?

>       Is there something very basic I am forgetting? Or is there
> something extra to be done when the SetStackingClass option is used?

Nope.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

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

Reply via email to