From 6163cecb6b3c5540e0fa05732142d1c3b6be600b Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 1 Apr 2018 01:46:41 +0300 Subject: [PATCH] [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. --- app/dock/dockview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/dock/dockview.cpp b/app/dock/dockview.cpp index c5f43ac47..d94fb7f77 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.isEmpty()) {