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