Bind sending frameRendered to whether we have a Wayland Server not to operation mode

Summary:
This ensures that frameRendered is also sent if we start a Wayland Server
on X11.

Reviewers: #plasma

Subscribers: plasma-devel

Projects: #plasma

Differential Revision: https://phabricator.kde.org/D1597
This commit is contained in:
Martin Gräßlin 2016-05-12 12:17:27 +02:00
parent a3ca25ecd4
commit 56331942f3

View file

@ -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);