From c0226fe74481d1f333992c09d643aec303fc1d9a Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 26 Apr 2018 16:43:56 +0200 Subject: [PATCH] Clear both cursor caches Summary: There are two cursor caches: m_cursors and m_cursorsByName. The second doesn't ever seem to be cleared. Reviewers: #kwin, davidedmundson, graesslin Reviewed By: #kwin, graesslin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D12542 --- pointer_input.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pointer_input.cpp b/pointer_input.cpp index b0756019ec..25f9e6bc6e 100644 --- a/pointer_input.cpp +++ b/pointer_input.cpp @@ -908,6 +908,7 @@ CursorImage::CursorImage(PointerInputRedirection *parent) connect(m_cursorTheme, &WaylandCursorTheme::themeChanged, this, [this] { m_cursors.clear(); + m_cursorsByName.clear(); loadThemeCursor(Qt::ArrowCursor, &m_fallbackCursor); updateDecorationCursor(); updateMoveResize();