- Add 0001-wait-before-creating-the-panel.patch to work around race

condition for panel transparency (boo#1000109)

OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5:LTS/plasma5-workspace?expand=0&rev=16
This commit is contained in:
Fabian Vogt 2016-09-24 20:54:24 +00:00 committed by Git OBS Bridge
parent 30350e9cb6
commit fded9fae5c
3 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,36 @@
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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 24 20:53:58 UTC 2016 - fabian@ritter-vogt.de
- Add 0001-wait-before-creating-the-panel.patch to work around race
condition for panel transparency (boo#1000109)
-------------------------------------------------------------------
Thu Sep 22 19:05:58 UTC 2016 - fabian@ritter-vogt.de

View File

@ -35,8 +35,10 @@ Patch0: 0001-Rename-qdbus-in-startkde.patch
Patch1: change-kioremote-severity.patch
# PATCH-FIX-UPSTREAM fix-wallpaper-not-having-correct-aspect-ratio.diff bnc#990257 alarrosa@suse.com -- Make plasma prefer wallpapers with the same aspect ratio as the screen instead of a wallpaper with the most similar area
Patch5: fix-wallpaper-not-having-correct-aspect-ratio.diff
# PATCHES 100-200 and above are from upstream 5.7 branch
# PATCHES 201-300 and above are from upstream master/5.8 branch
# PATCHES 100-200 and above are from upstream 5.8 branch
# PATCH-FIX-UPSTREAM 0001-wait-before-creating-the-panel.patch boo#1000109 -- Wait before creating the panel
Patch100: 0001-wait-before-creating-the-panel.patch
# PATCHES 201-300 and above are from upstream master/5.9 branch
BuildRequires: breeze5-icons
BuildRequires: fdupes
BuildRequires: kf5-filesystem
@ -205,6 +207,7 @@ workspace. Development files.
%patch0 -p1
%patch1 -p1
%patch5 -p1
%patch100 -p1
%build
%cmake_kf5 -d build -- -DKDE4_COMMON_PAM_SERVICE=xdm -DKDE_DEFAULT_HOME=.kde4 -DCMAKE_INSTALL_LOCALEDIR=%{_kf5_localedir}