lockSurface: set eglSwapInterval to 0 (#1015)

Co-authored-by: tmbull <tristan.m.bull@gmail.com>
This commit is contained in:
Maximilian Seidler 2026-05-14 16:28:14 +02:00 committed by GitHub
parent c86727a89b
commit 98fb021216
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -105,6 +105,11 @@ void CSessionLockSurface::configure(const Vector2D& size_, uint32_t serial_) {
readyForFrame = false;
return;
}
// When wayland frame callbacks are used directly, eglSwapInterval should be 0,
// otherwise eglSwapBuffers may block under some circumstances.
g_pEGL->makeCurrent(eglSurface);
eglSwapInterval(g_pEGL->eglDisplay, 0);
}
if (readyForFrame && !(SAMESIZE && SAMESCALE)) {