diff --git a/client/renderers/EGL/egl.c b/client/renderers/EGL/egl.c index 128120e3..f7db5b4a 100644 --- a/client/renderers/EGL/egl.c +++ b/client/renderers/EGL/egl.c @@ -960,8 +960,6 @@ static bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFr if (cursorState.visible) damage[damageIdx++] = cursorState.rect; - this->cursorLast = cursorState; - if (desktopDamage->count == -1) // -1 damage count means invalidating entire window. damageIdx = 0; @@ -987,6 +985,7 @@ static bool egl_render(void * opaque, LG_RendererRotate rotate, const bool newFr damageIdx = 0; this->hadOverlay = hasOverlay; + this->cursorLast = cursorState; desktopDamage->count = 0; app_eglSwapBuffers(this->display, this->surface, damage, damageIdx);