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
icc-effect-5.14.5
Aleix Pol 2018-04-26 16:43:56 +02:00
parent 4156a0af4d
commit c0226fe744
1 changed files with 1 additions and 0 deletions

View File

@ -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();