Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
9ed2dc3b
Verified
Commit
9ed2dc3b
authored
Feb 25, 2022
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
shell/desktopview.cpp
View file @
9ed2dc3b
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment