File 0003-Sync-app-config-in-sync-with-applets-config.patch of Package plasma5-workspace.openSUSE_Leap_42.2_Update

From 8ddb7ff40ea8027a1a355b67e4e4e2d57bd28abe Mon Sep 17 00:00:00 2001
From: David Edmundson <kde@davidedmundson.co.uk>
Date: Wed, 9 Nov 2016 15:11:52 +0000
Subject: [PATCH 3/5] Sync app config in sync with applets config

---
 shell/shellcorona.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp
index 8189eed..2e6dda7 100644
--- a/shell/shellcorona.cpp
+++ b/shell/shellcorona.cpp
@@ -114,6 +114,9 @@ ShellCorona::ShellCorona(QObject *parent)
     m_appConfigSyncTimer.setSingleShot(true);
     m_appConfigSyncTimer.setInterval(s_configSyncDelay);
     connect(&m_appConfigSyncTimer, &QTimer::timeout, this, &ShellCorona::syncAppConfig);
+    //we want our application config with screen mapping to always be in sync with the applets one, so a crash at any time will still
+    //leave containments pointing to the correct screens
+    connect(this, &Corona::configSynced, this, &ShellCorona::syncAppConfig);
 
     m_waitingPanelsTimer.setSingleShot(true);
     m_waitingPanelsTimer.setInterval(250);
-- 
2.10.1

openSUSE Build Service is sponsored by