Add the new desktop to the remaining output, not the actual new screen

The new screen might already have been adopted by an already-present
desktop.
wilder-5.14
Aleix Pol 12 years ago
parent efb1008f84
commit 47502b3064
  1. 2
      shell/shellcorona.cpp

@ -770,7 +770,7 @@ void ShellCorona::addOutput(KScreen::Output *output)
QScreen* newScreen = insertScreen(screen, insertPosition);
DesktopView *view = new DesktopView(this, screen);
DesktopView *view = new DesktopView(this, newScreen);
Plasma::Containment *containment = createContainmentForActivity(m_activityController->currentActivity(), m_views.count());
Q_ASSERT(containment);

Loading…
Cancel
Save