Desktop: incompatible change

What’s the equivalent of this old code, with the new Desktop changes?

      bool const fullScreen = m_topLevelComponent->getBoundsInParent() ==
                              Desktop::getInstance().getMainMonitorArea (false);

??

ComponentPeer::isFullScreen()? Is that what you are looking for?

Or you could use Desktop::getInstance().getDisplays().getMainDisplay().userArea