Call ::init() on created KDecoration2::Decoration

This commit is contained in:
Martin Gräßlin 2014-10-23 10:59:00 +02:00
parent 447fed7e37
commit a104d9dc62

View file

@ -128,7 +128,9 @@ KDecoration2::Decoration *DecorationBridge::createDecoration(Client *client)
if (!m_factory) { if (!m_factory) {
return nullptr; return nullptr;
} }
return m_factory->create<KDecoration2::Decoration>(client); auto deco = m_factory->create<KDecoration2::Decoration>(client);
deco->init();
return deco;
} }