backends/x11: Arm vsync monitor in EglX11Backend

This was originally on `EglX11Backend::endFrame` and got lost
as part of refactoring in 7358daa9, breaking nested `kwin_wayland`
rendering with GL.

Signed-off-by: Victoria Fischer <victoria.fischer@mbition.io>
Tested-by: Merge Service <https://invent.kde.org/plasma/kwin/-/merge_requests/2458>
Part-of: <https://invent.kde.org/plasma/kwin/-/merge_requests/2458>
This commit is contained in:
Kai Uwe Broulik 2022-05-24 14:45:46 +02:00 committed by Merge Service
parent cad5ddbab3
commit d143f6e3c4

View file

@ -102,6 +102,8 @@ bool EglX11Backend::createSurfaces()
void EglX11Backend::present(Output *output)
{
static_cast<X11WindowedOutput *>(output)->vsyncMonitor()->arm();
const auto &renderOutput = m_outputs[output];
presentSurface(renderOutput->surface(), renderOutput->lastDamage(), output->geometry());
}