|
|
@ -133,12 +133,17 @@ DockCorona::~DockCorona()
|
|
|
|
//! BEGIN: Give the time to slide-out docks when closing
|
|
|
|
//! BEGIN: Give the time to slide-out docks when closing
|
|
|
|
m_layoutManager->hideAllDocks();
|
|
|
|
m_layoutManager->hideAllDocks();
|
|
|
|
|
|
|
|
|
|
|
|
QTimer::singleShot(400, [this]() {
|
|
|
|
//! Dont delay the destruction under wayland in any case
|
|
|
|
m_quitTimedEnded = true;
|
|
|
|
//! 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;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
while (!m_quitTimedEnded) {
|
|
|
|
while (!m_quitTimedEnded) {
|
|
|
|
QGuiApplication::processEvents(QEventLoop::AllEvents, 50);
|
|
|
|
QGuiApplication::processEvents(QEventLoop::AllEvents, 50);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//! END: slide-out docks when closing
|
|
|
|
//! END: slide-out docks when closing
|
|
|
|