1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Linux: Made the Desktop singleton usable when running headless

This commit is contained in:
ed 2020-10-24 15:59:19 +01:00
parent f05ae1c709
commit bef6a91294

View file

@ -472,10 +472,13 @@ void Desktop::setKioskComponent (Component* comp, bool enableOrDisable, bool)
void Displays::findDisplays (float masterScale)
{
displays = XWindowSystem::getInstance()->findDisplays (masterScale);
if (XWindowSystem::getInstance()->getDisplay() != nullptr)
{
displays = XWindowSystem::getInstance()->findDisplays (masterScale);
if (! displays.isEmpty())
updateToLogical();
if (! displays.isEmpty())
updateToLogical();
}
}
bool Desktop::canUseSemiTransparentWindows() noexcept