From 3c6dff75d561aa9bcececaa97bd687ccdac1116d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 29 Jun 2016 08:34:10 +0200 Subject: [PATCH] Stop composite timer when Workspace gets destroyed On Wayland tear down the Workspace gets destroyed before the Compositor gets destroyed. If the timer fires in that area, the Compositor would crash. It's not possible to start the timer if the Workspace is destroyed, thus it should also be stoped on Workspace destroy. Reviewed-By: Bhushan Shah --- composite.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/composite.cpp b/composite.cpp index b867be5d79..f4d1e3d8ab 100644 --- a/composite.cpp +++ b/composite.cpp @@ -296,6 +296,7 @@ void Compositor::startupWithWorkspace() return; } Q_ASSERT(m_scene); + connect(workspace(), &Workspace::destroyed, this, [this] { compositeTimer.stop(); }); claimCompositorSelection(); m_xrrRefreshRate = KWin::currentRefreshRate(); fpsInterval = options->maxFpsInterval();