Verified Commit 9ed2dc3b authored by Fushan Wen's avatar Fushan Wen
Browse files

shell: Clean up code in DesktopView

setScreenToFollow will do the same things as the following two lines.
parent a02d1ca2
Pipeline #142087 passed with stage
in 5 minutes and 50 seconds
......@@ -43,8 +43,6 @@ DesktopView::DesktopView(Plasma::Corona *corona, QScreen *targetScreen)
if (targetScreen) {
setScreenToFollow(targetScreen);
setScreen(targetScreen);
setGeometry(targetScreen->geometry());
}
setFlags(Qt::Window | Qt::FramelessWindowHint);
......@@ -98,10 +96,6 @@ void DesktopView::adaptToScreen()
return;
}
if (m_oldScreen) {
disconnect(m_oldScreen.data(), &QScreen::geometryChanged, this, &DesktopView::screenGeometryChanged);
}
// qDebug() << "adapting to screen" << m_screenToFollow->name() << this;
if (m_oldScreen) {
disconnect(m_oldScreen.data(), &QScreen::geometryChanged, this, &DesktopView::screenGeometryChanged);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment