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

No longer needed with our own QPA plugin.
remotes/origin/mart/blurProtocol
Martin Gräßlin 11 years ago
parent 8add14fe89
commit 9afbecf4a6
  1. 10
      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);

Loading…
Cancel
Save