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:
parent
a493cfee4d
commit
fb80724977
4 changed files with 3242 additions and 3234 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue