mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-04 13:47:19 +03:00
dont apply too early blur effect
dont delay the corona destruction under wayland because that creates a crash with kwin effects BUG: 392890
This commit is contained in:
parent
5231e95c96
commit
745b9ea075
@ -1549,9 +1549,9 @@ void DockView::setBlockHiding(bool block)
|
||||
|
||||
void DockView::updateEffects()
|
||||
{
|
||||
//! CRASH: Dont update effects under wayland
|
||||
//! because they arent supported yet
|
||||
if (KWindowSystem::isPlatformWayland()) {
|
||||
//! Dont apply any effect before the wayland surface is created under wayland
|
||||
//! https://bugs.kde.org/show_bug.cgi?id=392890
|
||||
if (KWindowSystem::isPlatformWayland() && !m_shellSurface) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -133,6 +133,10 @@ DockCorona::~DockCorona()
|
||||
//! BEGIN: Give the time to slide-out docks when closing
|
||||
m_layoutManager->hideAllDocks();
|
||||
|
||||
//! Dont delay the destruction under wayland in any case
|
||||
//! because it creates a crash with kwin effects
|
||||
//! https://bugs.kde.org/show_bug.cgi?id=392890
|
||||
if (!KWindowSystem::isPlatformWayland()) {
|
||||
QTimer::singleShot(400, [this]() {
|
||||
m_quitTimedEnded = true;
|
||||
});
|
||||
@ -140,6 +144,7 @@ DockCorona::~DockCorona()
|
||||
while (!m_quitTimedEnded) {
|
||||
QGuiApplication::processEvents(QEventLoop::AllEvents, 50);
|
||||
}
|
||||
}
|
||||
|
||||
//! END: slide-out docks when closing
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user