Re: [UFO-devel] ufo::UFocusManager vs ufo::UWidget
Status: Beta
Brought to you by:
schmidtjf
From: Johannes S. <sch...@us...> - 2005-08-15 17:22:31
|
On Friday 22 July 2005 18:23, Andreas Beckermann wrote: > Hi > the patch to ufo::UFocusManager that makes it consume events, breaks > certain situations. Consider the following: > There is a widget that takes mouse click events and it has a child that > takes some kind of mouse events (m_eventState & MouseEvents, not talking > about motion events here). > > A mouse click event is delivered to the child widget. Now imagine it is not > interested in it (but the parent will be!) - it is now (because of > ufo::UWidget::processEvent()) delivered to the focusmanager, which consumes > it (requesting the focus). > So the event is not propagated to the parent, even if the child does not > make use of the focus at all. Hmm, okay, I have removed the event consuming and replaced it with a check whether the given mouse event was already processed. This should cover the above problem and the multiple mouse focus problem. Should be in developer CVS. Regards, Johannes |