Merge branch 'Plasma/5.2'

This commit is contained in:
Martin Gräßlin 2015-01-16 12:50:42 +01:00
commit 5c6b89876a

View file

@ -2294,13 +2294,17 @@ void Client::updateColorScheme()
// TODO: move into KWindowInfo
QString path = QString::fromUtf8(Xcb::StringProperty(m_client, atoms->kde_color_sheme));
path = rules()->checkDecoColor(path);
if (!path.isNull()) {
m_palette = KColorScheme::createApplicationPalette(KSharedConfig::openConfig(path));
QPalette p = m_palette;
if (!path.isEmpty()) {
p = KColorScheme::createApplicationPalette(KSharedConfig::openConfig(path));
} else {
m_palette = QApplication::palette();
p = QApplication::palette();
}
if (p != m_palette) {
m_palette = p;
emit paletteChanged(m_palette);
triggerDecorationRepaint();
}
emit paletteChanged(m_palette);
triggerDecorationRepaint();
}
bool Client::isClient() const