[wayland] Drop workaround for faking frame rendered for Qt windows

No longer needed with our own QPA plugin.
icc-effect-5.14.5
Martin Gräßlin 2015-08-20 09:56:36 +02:00
parent 8add14fe89
commit 9afbecf4a6
1 changed files with 0 additions and 10 deletions

View File

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