Correctly update decoration width/height on theme change

This commit is contained in:
Martin Gräßlin 2012-01-12 20:31:25 +01:00
parent 12ca69deda
commit beba190f8f

View file

@ -411,8 +411,8 @@ void AuroraeClient::themeChanged()
m_scene->clear(); m_scene->clear();
m_item = AuroraeFactory::instance()->createQmlDecoration(this); m_item = AuroraeFactory::instance()->createQmlDecoration(this);
if (m_item) { if (m_item) {
m_item->setWidth(width()); m_item->setWidth(m_scene->sceneRect().width());
m_item->setHeight(height()); m_item->setHeight(m_scene->sceneRect().height());
} }
m_scene->addItem(m_item); m_scene->addItem(m_item);
} }