From 4b1ef33c1e3887b58b5d787d2df71c017c2318a3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 22 Feb 2023 12:36:44 +0200 Subject: [PATCH] wayland: Update shadow immediately Updating OpenGL textures no longer takes place immediately. --- src/internalwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/internalwindow.cpp b/src/internalwindow.cpp index c0cc43050d..9b111dc504 100644 --- a/src/internalwindow.cpp +++ b/src/internalwindow.cpp @@ -117,10 +117,7 @@ bool InternalWindow::eventFilter(QObject *watched, QEvent *event) setSkipCloseAnimation(m_handle->property(s_skipClosePropertyName).toBool()); } if (pe->propertyName() == s_shadowEnabledPropertyName) { - // Some dialog e.g. Plasma::Dialog may update shadow in the middle of rendering. - // The opengl context changed by updateShadow may break the QML Window rendering - // and cause crash. - QMetaObject::invokeMethod(this, &InternalWindow::updateShadow, Qt::QueuedConnection); + updateShadow(); } if (pe->propertyName() == "kwin_windowType") { m_windowType = m_handle->property("kwin_windowType").value();