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) void DockView::statusChanged(Plasma::Types::ItemStatus status)
{ {
if ((status == Plasma::Types::NeedsAttentionStatus) || if (containment()) {
(status == Plasma::Types::RequiresAttentionStatus)) { if (containment()->status() >= Plasma::Types::NeedsAttentionStatus &&
m_visibility->setBlockHiding(true); containment()->status() != Plasma::Types::HiddenStatus) {
} else { m_visibility->setBlockHiding(true);
m_visibility->setBlockHiding(false); } else {
m_visibility->setBlockHiding(false);
}
} }
} }

Loading…
Cancel
Save