fix #275,top dock gains priority for AlwaysVisible

--the other docks must be also AlwaysVisible in order
for the top dock to be above them...
pull/1/head
Michail Vourlakos 8 years ago
parent df760a909a
commit f371ea2a45

@ -457,6 +457,15 @@ QRect DockView::maximumNormalGeometry()
break;
}
//! this is needed in order to preserve that the top dock will be above
//! the others in case flag bypasswindowmanagerhint hasnt be set,
//! such a case is the AlwaysVisible mode
if (location() == Plasma::Types::TopEdge) {
KWindowSystem::setState(winId(), NET::KeepAbove);
} else {
KWindowSystem::clearState(winId(), NET::KeepAbove);
}
return maxGeometry;
}

Loading…
Cancel
Save