From c74b60c7da9c3474b4dc6a084969f87eb9043b9f Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 8 May 2021 19:21:24 +0300 Subject: [PATCH] subcontainments considered Expandable --- app/view/containmentinterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/view/containmentinterface.cpp b/app/view/containmentinterface.cpp index 711f478e9..db7c7a19f 100644 --- a/app/view/containmentinterface.cpp +++ b/app/view/containmentinterface.cpp @@ -457,8 +457,9 @@ bool ContainmentInterface::appletIsExpandable(PlasmaQuick::AppletQuickItem *appl return false; } - return (appletQuickItem->fullRepresentation() != nullptr - && appletQuickItem->preferredRepresentation() != appletQuickItem->fullRepresentation()); + return ((appletQuickItem->fullRepresentation() != nullptr + && appletQuickItem->preferredRepresentation() != appletQuickItem->fullRepresentation()) + || Latte::Layouts::Storage::self()->isSubContainment(m_view->layout(), appletQuickItem->applet())); } bool ContainmentInterface::hasExpandedApplet() const