1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

Changes for win32 modal component mouse events (toolbar customisation fix)

This commit is contained in:
Julian Storer 2011-03-30 11:30:09 +01:00
parent a493cfee4d
commit fb80724977
4 changed files with 3242 additions and 3234 deletions

View file

@ -208,7 +208,7 @@ void ModalComponentManager::handleAsyncUpdate()
}
}
void ModalComponentManager::bringModalComponentsToFront()
void ModalComponentManager::bringModalComponentsToFront (bool topOneShouldGrabFocus)
{
ComponentPeer* lastOne = 0;
@ -225,8 +225,10 @@ void ModalComponentManager::bringModalComponentsToFront()
{
if (lastOne == 0)
{
peer->toFront (true);
peer->grabFocus();
peer->toFront (topOneShouldGrabFocus);
if (topOneShouldGrabFocus)
peer->grabFocus();
}
else
peer->toBehind (lastOne);