1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-21 01:24:21 +00:00

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

This commit is contained in:
reuk 2021-09-21 13:46:54 +01:00
parent a130cc5d17
commit 4c95897ad3
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

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