1
0
Fork 0
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:
reuk 2021-10-25 18:12:29 +01:00
parent 496e454e9c
commit cdbefa3b51
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -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;
}