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:
parent
a130cc5d17
commit
4c95897ad3
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue