make sure desktop containments exist before script

the script should just change the configuration of the desktop
containments, not creating them, as they are too tied to activities
wilder-5.14
Marco Martin 10 years ago
parent d628408a59
commit a697d291f9
  1. 7
      shell/shellcorona.cpp

@ -709,6 +709,7 @@ void ShellCorona::unload()
m_panelViews.clear();
m_desktopContainments.clear();
m_waitingPanels.clear();
m_activityContainmentPlugins.clear();
while (!containments().isEmpty()) {
//deleting a containment will remove it from the list due to QObject::destroyed connect in Corona
@ -730,6 +731,12 @@ void ShellCorona::requestApplicationConfigSync()
void ShellCorona::loadDefaultLayout()
{
//NOTE: Is important the containments already exist for each screen
// at the moment of the script execution
for (QScreen* screen : qGuiApp->screens()) {
addOutput(screen);
}
QString script = ShellManager::s_testModeLayout;
if (script.isEmpty()) {

Loading…
Cancel
Save