Commit cf7254a7 authored by Mikhail Zolotukhin's avatar Mikhail Zolotukhin Committed by Nate Graham
Browse files

Notify about change after cursor config is saved

Summary:
Before that patch the cursor change signal was only transmitted after
a configuration was applied on a fly. Because the cursor change is
not applied on a fly on Wayland session yet, the signal is not emitted and
therefore users of that signal are not notified about cursor change.

Now the signal is emitted after the configuration save, so its users are
notified.

Reviewers: #plasma, broulik

Reviewed By: #plasma, broulik

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24701
parent 299f298d
......@@ -307,9 +307,6 @@ bool CursorThemeConfig::applyTheme(const CursorTheme *theme, const int size)
// Update the Xcursor X resources
runRdb(0);
// Notify all applications that the cursor theme has changed
KGlobalSettings::self()->emitChange(KGlobalSettings::CursorChanged);
// Reload the standard cursors
QStringList names;
......@@ -389,6 +386,8 @@ void CursorThemeConfig::save()
if (!applyTheme(theme, m_currentSize)) {
emit showInfoMessage(i18n("You have to restart the Plasma session for these changes to take effect."));
}
KGlobalSettings::self()->emitChange(KGlobalSettings::CursorChanged);
setNeedsSave(false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment