From 4fe0bda4db144f8a4fd49ca5158d55c640048840 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 30 Aug 2022 14:00:38 +0200 Subject: [PATCH] compare with cend we are searching between m_oldScreenGeometries.cbegin() and m_oldScreenGeometries.cend(), so the result can't be compared with m_oldScreenGeometries.end() --- src/workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index a68fae7200..590c923297 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -2255,7 +2255,7 @@ void Workspace::desktopResized() const auto oldCursorOutput = std::find_if(m_oldScreenGeometries.cbegin(), m_oldScreenGeometries.cend(), [](const auto &geometry) { return geometry.contains(Cursors::self()->mouse()->pos()); }); - if (oldCursorOutput != m_oldScreenGeometries.end()) { + if (oldCursorOutput != m_oldScreenGeometries.cend()) { const Output *cursorOutput = oldCursorOutput.key(); if (std::find(m_outputs.cbegin(), m_outputs.cend(), cursorOutput) != m_outputs.cend()) { const QRect oldGeometry = oldCursorOutput.value();