From kde-commits Sat Mar 31 22:47:53 2018 From: Michail Vourlakos Date: Sat, 31 Mar 2018 22:47:53 +0000 To: kde-commits Subject: [latte-dock] app/dock: [wayland] add a protection for updateEffects Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=152253648706160 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()) {