From 9afbecf4a6385bf7e3db4eb1999e755aad6e98f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 20 Aug 2015 09:56:36 +0200 Subject: [PATCH] [wayland] Drop workaround for faking frame rendered for Qt windows No longer needed with our own QPA plugin. --- wayland_server.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wayland_server.cpp b/wayland_server.cpp index c332791ea3..3ad2d93ec2 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -113,16 +113,6 @@ void WaylandServer::init(const QByteArray &socketName) // skip Xwayland clients, those are created using standard X11 way return; } - if (surface->client() == m_internalConnection.server) { - // one of Qt's windows - // HACK: in order to get Qt to not block for frame rendered, we immediatelly emit the - // frameRendered once we get a new damage event. - auto s = surface->surface(); - connect(s, &SurfaceInterface::damaged, this, [this, s] { - s->frameRendered(0); - m_internalConnection.client->flush(); - }); - } auto client = new ShellClient(surface); if (auto c = Compositor::self()) { connect(client, &Toplevel::needsRepaint, c, &Compositor::scheduleRepaint);