Browse Source

Windows: Ensure that new windows are brought to the front after creation

v6.1.6
reuk 3 years ago
parent
commit
cdbefa3b51
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp

+ 2
- 2
modules/juce_gui_basics/native/juce_win32_Windowing.cpp 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;
}


Loading…
Cancel
Save