diff --git a/composite.cpp b/composite.cpp index 538de69474..c3df6b5c13 100644 --- a/composite.cpp +++ b/composite.cpp @@ -724,7 +724,7 @@ void Compositor::performCompositing() m_timeSinceLastVBlank = m_scene->paint(repaints, windows); m_timeSinceStart += m_timeSinceLastVBlank; - if (kwinApp()->shouldUseWaylandForCompositing()) { + if (waylandServer()) { for (Toplevel *win : damaged) { if (auto surface = win->surface()) { surface->frameRendered(m_timeSinceStart);