Update Hyprpaper.cpp (#31)

This commit is contained in:
Anton Samokhvalov 2023-01-05 00:53:44 +03:00 committed by GitHub
parent e1b293aedf
commit 1c19aa2b4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ void CHyprpaper::ensurePoolBuffersPresent() {
if (m->size == Vector2D()) if (m->size == Vector2D())
continue; continue;
auto it = std::find_if(m_vBuffers.begin(), m_vBuffers.end(), [&](const std::unique_ptr<SPoolBuffer>& el) { auto it = std::find_if(m_vBuffers.begin(), m_vBuffers.end(), [wt = wt, &m](const std::unique_ptr<SPoolBuffer>& el) {
return el->target == wt.m_szPath && el->pixelSize == m->size * m->scale; return el->target == wt.m_szPath && el->pixelSize == m->size * m->scale;
}); });