mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Ensure that new windows are brought to the front after creation
This commit is contained in:
parent
496e454e9c
commit
cdbefa3b51
1 changed files with 2 additions and 2 deletions
|
|
@ -1671,7 +1671,7 @@ public:
|
|||
const ScopedValueSetter<bool> scope (shouldIgnoreModalDismiss, true);
|
||||
|
||||
if (shouldBeMinimised != isMinimised())
|
||||
ShowWindow (hwnd, shouldBeMinimised ? SW_MINIMIZE : SW_SHOWNORMAL);
|
||||
ShowWindow (hwnd, shouldBeMinimised ? SW_MINIMIZE : SW_RESTORE);
|
||||
}
|
||||
|
||||
bool isMinimised() const override
|
||||
|
|
@ -2410,7 +2410,7 @@ private:
|
|||
|
||||
static void* toFrontCallback1 (void* h)
|
||||
{
|
||||
SetForegroundWindow ((HWND) h);
|
||||
BringWindowToTop ((HWND) h);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue