mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-11-17 00:25:57 +01:00
parent
4d6d01c495
commit
3b42f6bee2
1 changed files with 1 additions and 6 deletions
|
@ -90,12 +90,7 @@ void CLayerSurface::sendFrame() {
|
|||
|
||||
void CLayerSurface::markDirty() {
|
||||
frameCallback = makeShared<CCWlCallback>(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;
|
||||
|
|
Loading…
Reference in a new issue