1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-30 14:50:12 +03:00

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...
This commit is contained in:
Michail Vourlakos 2017-03-18 20:08:56 +02:00
parent 466136cbd1
commit e0bc661adf

View File

@ -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;
}