Browse Source

XWindowSystem: Only dismiss transient modal windows when other windows are moved or resized

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

+ 3
- 1
modules/juce_gui_basics/native/x11/juce_linux_XWindowSystem.cpp View File

@@ -3544,7 +3544,9 @@ void XWindowSystem::dismissBlockingModals (LinuxComponentPeer* peer) const
{
if (peer->getComponent().isCurrentlyBlockedByAnotherModalComponent())
if (auto* currentModalComp = Component::getCurrentlyModalComponent())
currentModalComp->inputAttemptWhenModal();
if (auto* otherPeer = currentModalComp->getPeer())
if ((otherPeer->getStyleFlags() & ComponentPeer::windowIsTemporary) != 0)
currentModalComp->inputAttemptWhenModal();
}
void XWindowSystem::handleConfigureNotifyEvent (LinuxComponentPeer* peer, XConfigureEvent& confEvent) const


Loading…
Cancel
Save