[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [latte-dock] app/dock: [wayland] add a protection for updateEffects
From:       Michail Vourlakos <null () kde ! org>
Date:       2018-03-31 22:47:53
Message-ID: E1f2PHt-00057b-LZ () code ! kde ! org
[Download RAW message or body]

Git commit 6163cecb6b3c5540e0fa05732142d1c3b6be600b by Michail Vourlakos.
Committed on 31/03/2018 at 22:46.
Pushed by mvourlakos into branch 'master'.

[wayland] add a protection for updateEffects

--Blur effect under Plasma 5.12(wayland) creates
many crashes. As it appears for 5.13 this has been
greatly improved.

M  +3    -3    app/dock/dockview.cpp

https://commits.kde.org/latte-dock/6163cecb6b3c5540e0fa05732142d1c3b6be600b

diff --git a/app/dock/dockview.cpp b/app/dock/dockview.cpp
index c5f43ac..d94fb7f 100644
--- a/app/dock/dockview.cpp
+++ b/app/dock/dockview.cpp
@@ -1524,9 +1524,9 @@ void DockView::updateEffects()
 {
     //! CRASH: Dont update effects under wayland
     //! because they arent supported yet
-    //if (KWindowSystem::isPlatformWayland()) {
-    //    return;
-    //}
+    if (KWindowSystem::isPlatformWayland() && !m_drawEffects) {
+        return;
+    }
 =

     if (!m_behaveAsPlasmaPanel) {
         if (m_drawEffects && !m_effectsArea.isNull() && !m_effectsArea.isE=
mpty()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic