plasma5-workspace/0001-wait-before-creating-the-panel.patch

37 lines
1.4 KiB
Diff

From 6449c8f939d5cf84dbf0199180e9a536d922b0e2 Mon Sep 17 00:00:00 2001
From: Marco Martin <notmart@gmail.com>
Date: Wed, 21 Sep 2016 16:34:04 +0200
Subject: [PATCH] wait before creating the panel
not creating the panel view yet in order to have the same code path
between the first and subsequent plasma starts.
we want to have the panel appearing only when its layout is completed, to not have
many visible relayouts. otherwise we had even panel resizes at startup that
made al lthe full representations be loaded.
reviewed-by: David Edmundson
---
shell/shellcorona.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp
index 65ef01f..94ad07d 100644
--- a/shell/shellcorona.cpp
+++ b/shell/shellcorona.cpp
@@ -1732,7 +1732,11 @@ Plasma::Containment *ShellCorona::addPanel(const QString &plugin)
Q_ASSERT(panel);
m_waitingPanels << panel;
- createWaitingPanels();
+ //not creating the panel view yet in order to have the same code path
+ //between the first and subsequent plasma starts. we want to have the panel appearing only when its layout is completed, to not have
+ //many visible relayouts. otherwise we had even panel resizes at startup that
+ //made al lthe full representations be loaded.
+ m_waitingPanelsTimer.start();
const QPoint cursorPos(QCursor::pos());
foreach (QScreen *screen, QGuiApplication::screens()) {
--
2.10.0