Commit 1ea9d787 authored by Marco Martin's avatar Marco Martin
Browse files

forward containmentDisplayHints from panel to the systray

forward containmentDisplayHints from panel to the systray, adding the
systray specific ones which are
Plasma::Types::ContainmentDrawsPlasmoidHeading and
 Plasma::Types::ContainmentForcesSquarePlasmoids
parent 7db8d5ee
......@@ -115,6 +115,14 @@ void SystemTrayContainer::ensureSystrayExists()
// replace internal remove action with ours
m_innerContainment->actions()->addAction("remove", actions()->action("remove"));
//Sync the display hints
m_innerContainment->setContainmentDisplayHints(containmentDisplayHints() | Plasma::Types::ContainmentDrawsPlasmoidHeading | Plasma::Types::ContainmentForcesSquarePlasmoids);
connect(cont, &Plasma::Containment::containmentDisplayHintsChanged, this,
[this]() {
m_innerContainment->setContainmentDisplayHints(containmentDisplayHints() | Plasma::Types::ContainmentDrawsPlasmoidHeading | Plasma::Types::ContainmentForcesSquarePlasmoids);
}
);
}
void SystemTrayContainer::constraintsEvent(Plasma::Types::Constraints constraints)
......
Supports Markdown
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