From 50852e531987d20c432122fbec7f1f089bc2dc09 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 5 Jan 2023 14:39:29 +0100 Subject: [PATCH] Revert "Update Hyprpaper.cpp (#31)" This reverts commit 1c19aa2b4f2b9e70dd9a3d2105f396cf094b0e82. --- src/Hyprpaper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hyprpaper.cpp b/src/Hyprpaper.cpp index 7d47efb..d895fe0 100644 --- a/src/Hyprpaper.cpp +++ b/src/Hyprpaper.cpp @@ -199,7 +199,7 @@ void CHyprpaper::ensurePoolBuffersPresent() { if (m->size == Vector2D()) continue; - auto it = std::find_if(m_vBuffers.begin(), m_vBuffers.end(), [wt = wt, &m](const std::unique_ptr& el) { + auto it = std::find_if(m_vBuffers.begin(), m_vBuffers.end(), [&](const std::unique_ptr& el) { return el->target == wt.m_szPath && el->pixelSize == m->size * m->scale; });