Hi all,
Sorry I think I didn't explain my doubt clearly.
Support we have two DFBTerms say DFBTerm1 and DFBTerm2.
DFBTerm1 will have a window manager and DFBTerm2 will have a window
manager .
Current focus is in DFBTerm2 ,now when I click the DFBTerm1 window ,
The focus goes to DFBTerm1.
DFBTerm1 is one process and DFBTerm2 is another process.
To shift the focus, I guess, DFBTerm2 will receive FOCUS_OUT Event
and
DFBTerm1 will receive FOCUS_IN Event. Then MOUSE_CLICK will be
Passed to DFBTerm1.
I want to know who is taking care of the above, i.e.
how the decision is taken,to which process to send the mouse
event.
Since each Process is having its own window manager.
Regards,
Dharma
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Denis Oliver Kropp
Sent: Wednesday, August 02, 2006 10:40 PM
To: [EMAIL PROTECTED]
Cc: [email protected]; [email protected]; 'Unger Richard'
Subject: Re: [directfb-users] [directfb-dev] Some doubts about window
manager
Dharma wrote:
> Hi,
> I saw the code . I thought the same way. I have one more doubt .
> Suppose say we have a DFBTERM of whose x,y,width,height is 0,0,100,100
> And we have another DFBTERM whose x,y,width,height is 0,0,100,100 and the
> Screen width,screen height is 600,480.
>
> When I click in some place in the screen, it calls
> dfb_input_dispatcher() which calls fusion_reactor_dispatch().
> I think the Reactor is for calling process functions. Here it calls
> _dfb_windowstack_inputdevice_listener(),
>
> Is it passing events(mouse click) to DFBTERM1
> _dfb_windowstack_inputdevice_listener and to
> DFBTERM2_dfb_windowstack_inputdevice_listener ?
No, the _dfb_windowstack_inputdevice_listener is a global
reaction which means that it can run globally and is executed
synchronously by the caller of fusion_reactor_dispatch,
no matter which Fusionee attached the reaction.
So this function still runs in the master only and calls the WM
which decides which window the event should go to. It creates a
window event and dispatches it to the window via its reactor.
Input Driver => (InputReactor) -> windowstack input listener -> WM
process input => (WindowReactor)
Via the window reactor the event will be dispatched to the corresponding
process which has local reactions, e.g. to store the event in a local
event queue (DirectFBEventBuffer).
--
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
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users