|
|
|
@ -229,12 +229,13 @@ void DockView::reconsiderScreen()
|
|
|
|
|
auto *dockCorona = qobject_cast<DockCorona *>(this->corona());
|
|
|
|
|
|
|
|
|
|
bool screenExists{false};
|
|
|
|
|
foreach(auto scr, qGuiApp->screens()){
|
|
|
|
|
|
|
|
|
|
foreach (auto scr, qGuiApp->screens()) {
|
|
|
|
|
if (m_screenToFollowId == scr->name())
|
|
|
|
|
screenExists = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
qDebug() << "dock screen exists ::: "<< screenExists;
|
|
|
|
|
qDebug() << "dock screen exists ::: " << screenExists;
|
|
|
|
|
|
|
|
|
|
if ((m_onPrimary || (tasksPresent() && dockCorona->noDocksWithTasks() == 1) && !screenExists)
|
|
|
|
|
&& m_screenToFollowId != qGuiApp->primaryScreen()->name()
|
|
|
|
@ -434,7 +435,6 @@ void DockView::updatePosition()
|
|
|
|
|
|
|
|
|
|
case Plasma::Types::BottomEdge:
|
|
|
|
|
screenGeometry = this->screen()->geometry();
|
|
|
|
|
qDebug() << "screen geometry: " << screenGeometry;
|
|
|
|
|
|
|
|
|
|
if (m_drawShadows) {
|
|
|
|
|
position = {screenGeometry.x() + length(screenGeometry.width()),
|
|
|
|
|