mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-22 20:58:08 +02:00
lockSurface: set eglSwapInterval to 0 (#1015)
Co-authored-by: tmbull <tristan.m.bull@gmail.com>
This commit is contained in:
parent
c86727a89b
commit
98fb021216
1 changed files with 5 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue