[kwin] Connect to refreshFonts from KDEPlatformTheme
Replaces one usage of KGlobalsettings. It might be a good idea to move the connect into libkdecoration or into the options as it looks like there is no need to reconfigure everything just because the fonts changed.
This commit is contained in:
parent
e92d02ab61
commit
09958a6b1c
1 changed files with 8 additions and 1 deletions
|
@ -323,10 +323,17 @@ void Workspace::init()
|
|||
connect(&reconfigureTimer, SIGNAL(timeout()), this, SLOT(slotReconfigure()));
|
||||
connect(&updateToolWindowsTimer, SIGNAL(timeout()), this, SLOT(slotUpdateToolWindows()));
|
||||
|
||||
connect(KGlobalSettings::self(), SIGNAL(appearanceChanged()), this, SLOT(reconfigure()));
|
||||
connect(KGlobalSettings::self(), SIGNAL(settingsChanged(int)), this, SLOT(slotSettingsChanged(int)));
|
||||
connect(KGlobalSettings::self(), SIGNAL(blockShortcuts(int)), this, SLOT(slotBlockShortcuts(int)));
|
||||
|
||||
// TODO: do we really need to reconfigure everything when fonts change?
|
||||
// maybe just reconfigure the decorations? Move this into libkdecoration?
|
||||
QDBusConnection::sessionBus().connect(QString(),
|
||||
QStringLiteral("/KDEPlatformTheme"),
|
||||
QStringLiteral("org.kde.KDEPlatformTheme"),
|
||||
QStringLiteral("refreshFonts"),
|
||||
this, SLOT(reconfigure()));
|
||||
|
||||
active_client = NULL;
|
||||
rootInfo->setActiveWindow(None);
|
||||
focusToNull();
|
||||
|
|
Loading…
Reference in a new issue