Browse Source

HWNDComponentPeer: Dismiss temporary modal windows when a window loses focus

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

+ 6
- 0
modules/juce_gui_basics/native/juce_win32_Windowing.cpp View File

@@ -3812,6 +3812,12 @@ private:
}
handleFocusLoss();
if (auto* modal = Component::getCurrentlyModalComponent())
if (auto* peer = modal->getPeer())
if ((peer->getStyleFlags() & ComponentPeer::windowIsTemporary) != 0)
sendInputAttemptWhenModalMessage();
break;
case WM_ACTIVATEAPP:


Loading…
Cancel
Save