mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-11-17 08:25:58 +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() {
|
void CLayerSurface::markDirty() {
|
||||||
frameCallback = makeShared<CCWlCallback>(pSurface->sendFrame());
|
frameCallback = makeShared<CCWlCallback>(pSurface->sendFrame());
|
||||||
frameCallback->setDone([this](CCWlCallback* r, uint32_t when) {
|
frameCallback->setDone([this](CCWlCallback* r, uint32_t when) { onCallbackDone(this, when); });
|
||||||
frameCallback.reset();
|
|
||||||
|
|
||||||
if (dirty || !rendered)
|
|
||||||
g_pHyprpicker->renderSurface(g_pHyprpicker->m_pLastSurface);
|
|
||||||
});
|
|
||||||
pSurface->sendCommit();
|
pSurface->sendCommit();
|
||||||
|
|
||||||
dirty = true;
|
dirty = true;
|
||||||
|
|
Loading…
Reference in a new issue