Mouse double-click bug

If I double-click in a component and use that event to create a child component in the same area, then single-click in the new component within the double-click time, the new component will receive a double-click event, as the static countMouseClicks() method in juce_Component.cpp don’t distinguish between mouse clicks made in different components.

I’m sending patch files (from juce 1.43) of juce_Component.cpp & juce_ComponentPeer.cpp to you by email Jules.

Thanks!