fix screen choosing from configuration window

--the check for the screen if it has the specific
edge free added some small bugs
v0.6
Michail Vourlakos 8 years ago
parent 1140108963
commit eea03ab0c7

@ -155,10 +155,6 @@ void DockView::init()
bool DockView::setCurrentScreen(const QString id)
{
if (!m_screenToFollow || m_screenToFollow->name() == id) {
return false;
}
QScreen *nextScreen{qGuiApp->primaryScreen()};
if (id != "primary") {
@ -170,6 +166,10 @@ bool DockView::setCurrentScreen(const QString id)
}
}
if (m_screenToFollow == nextScreen) {
return true;
}
if (nextScreen) {
auto *dockCorona = qobject_cast<DockCorona *>(this->corona());
@ -184,7 +184,7 @@ bool DockView::setCurrentScreen(const QString id)
}
}
return false;
return true;
}
void DockView::setScreenToFollow(QScreen *screen)

Loading…
Cancel
Save