shell: Clean up code in DesktopView

setScreenToFollow will do the same things as the following two lines.
wilder-5.25
Fushan Wen 4 years ago
parent a02d1ca27b
commit 9ed2dc3bb1
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA
  1. 6
      shell/desktopview.cpp

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

Loading…
Cancel
Save