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:
parent
466136cbd1
commit
e0bc661adf
@ -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…
x
Reference in New Issue
Block a user