diff --git a/src/helpers/LayerSurface.cpp b/src/helpers/LayerSurface.cpp index 03cb3e4..f67d186 100644 --- a/src/helpers/LayerSurface.cpp +++ b/src/helpers/LayerSurface.cpp @@ -90,12 +90,7 @@ void CLayerSurface::sendFrame() { void CLayerSurface::markDirty() { frameCallback = makeShared(pSurface->sendFrame()); - frameCallback->setDone([this](CCWlCallback* r, uint32_t when) { - frameCallback.reset(); - - if (dirty || !rendered) - g_pHyprpicker->renderSurface(g_pHyprpicker->m_pLastSurface); - }); + frameCallback->setDone([this](CCWlCallback* r, uint32_t when) { onCallbackDone(this, when); }); pSurface->sendCommit(); dirty = true;