improve when dock can hide itself

--when an applet becomes activated then the dock
shouldnt hide itself until the applet to become
inactive
pull/1/head
Michail Vourlakos 8 years ago
parent c0f9a15545
commit 81b36dc91e

@ -366,11 +366,13 @@ inline void DockView::syncGeometry()
void DockView::statusChanged(Plasma::Types::ItemStatus status)
{
if ((status == Plasma::Types::NeedsAttentionStatus) ||
(status == Plasma::Types::RequiresAttentionStatus)) {
m_visibility->setBlockHiding(true);
} else {
m_visibility->setBlockHiding(false);
if (containment()) {
if (containment()->status() >= Plasma::Types::NeedsAttentionStatus &&
containment()->status() != Plasma::Types::HiddenStatus) {
m_visibility->setBlockHiding(true);
} else {
m_visibility->setBlockHiding(false);
}
}
}

Loading…
Cancel
Save