mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2025-05-13 05:40:40 +01:00
layerSurface: fix commit lag (#114)
This commit is contained in:
parent
6692091d56
commit
23664963a1
1 changed files with 1 additions and 7 deletions
|
@ -86,6 +86,7 @@ void CLayerSurface::sendFrame() {
|
||||||
} else
|
} else
|
||||||
pSurface->sendSetBufferScale(m_pMonitor->scale);
|
pSurface->sendSetBufferScale(m_pMonitor->scale);
|
||||||
|
|
||||||
|
pSurface->sendDamageBuffer(0, 0, 0xFFFF, 0xFFFF);
|
||||||
pSurface->sendCommit();
|
pSurface->sendCommit();
|
||||||
|
|
||||||
dirty = false;
|
dirty = false;
|
||||||
|
@ -95,12 +96,5 @@ void CLayerSurface::markDirty() {
|
||||||
frameCallback = makeShared<CCWlCallback>(pSurface->sendFrame());
|
frameCallback = makeShared<CCWlCallback>(pSurface->sendFrame());
|
||||||
frameCallback->setDone([this](CCWlCallback* r, uint32_t when) { onCallbackDone(this, when); });
|
frameCallback->setDone([this](CCWlCallback* r, uint32_t when) { onCallbackDone(this, when); });
|
||||||
|
|
||||||
pSurface->sendDamageBuffer(0, 0, 0xFFFF, 0xFFFF);
|
|
||||||
|
|
||||||
if (buffers[lastBuffer])
|
|
||||||
pSurface->sendAttach(buffers[lastBuffer]->buffer.get(), 0, 0);
|
|
||||||
|
|
||||||
pSurface->sendCommit();
|
|
||||||
|
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue