From 47502b3064328395a5c0e943a4448a511927fe08 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 4 Nov 2014 18:06:48 +0100 Subject: [PATCH] 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. --- shell/shellcorona.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp index 316fa4fff..e9d51644c 100644 --- a/shell/shellcorona.cpp +++ b/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);