update FrameExtends for View::typeChanged

--during startup a panel type may become a dock type
and vice versa. We make sure that frameExtents
are updated accordingly when that happens.
pull/17/head
Michail Vourlakos 5 years ago
parent edb943db6b
commit e6e68d86c3

@ -86,6 +86,14 @@ VisibilityManager::VisibilityManager(PlasmaQuick::ContainmentView *view)
publishFrameExtents(forceUpdate); publishFrameExtents(forceUpdate);
}); });
connect(m_latteView, &Latte::View::typeChanged, this, [&]() {
if (m_latteView->inEditMode()) {
//! Resend frame extents because type has changed
const bool forceUpdate{true};
publishFrameExtents(forceUpdate);
}
});
connect(m_latteView, &Latte::View::forcedShown, this, [&]() { connect(m_latteView, &Latte::View::forcedShown, this, [&]() {
//! Resend frame extents to compositor otherwise because compositor cleared //! Resend frame extents to compositor otherwise because compositor cleared
//! them with no reason when the user is closing an activity //! them with no reason when the user is closing an activity

Loading…
Cancel
Save