Dharma wrote: > 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.
It's in the wm, e.g. in wm/default/default.c in handle_button_press() sending to "data->entered_window" determined by update_focus(). > Since each Process is having its own window manager. They all have the same window manager that has some local and mainly shared data structures. Each process has an instance of the module loaded. -- 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
