Skip to content
GitLab
Menu
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
3520cd5a
Commit
3520cd5a
authored
Feb 15, 2022
by
Aleix Pol Gonzalez
🐧
Committed by
Nate Graham
Feb 21, 2022
Browse files
PanelView: Do not crash when the state is transitioning
BUG: 373461
(cherry picked from commit
61e935ea
)
parent
bd99299a
Pipeline
#140601
passed with stage
in 9 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
shell/panelview.cpp
View file @
3520cd5a
...
...
@@ -1372,17 +1372,19 @@ void PanelView::updateEnabledBorders()
break
;
}
if
(
x
()
<=
m_screenToFollow
->
geometry
().
x
())
{
borders
&=
~
Plasma
::
FrameSvg
::
LeftBorder
;
}
if
(
x
()
+
width
()
>=
m_screenToFollow
->
geometry
().
x
()
+
m_screenToFollow
->
geometry
().
width
())
{
borders
&=
~
Plasma
::
FrameSvg
::
RightBorder
;
}
if
(
y
()
<=
m_screenToFollow
->
geometry
().
y
())
{
borders
&=
~
Plasma
::
FrameSvg
::
TopBorder
;
}
if
(
y
()
+
height
()
>=
m_screenToFollow
->
geometry
().
y
()
+
m_screenToFollow
->
geometry
().
height
())
{
borders
&=
~
Plasma
::
FrameSvg
::
BottomBorder
;
if
(
m_screenToFollow
)
{
if
(
x
()
<=
m_screenToFollow
->
geometry
().
x
())
{
borders
&=
~
Plasma
::
FrameSvg
::
LeftBorder
;
}
if
(
x
()
+
width
()
>=
m_screenToFollow
->
geometry
().
x
()
+
m_screenToFollow
->
geometry
().
width
())
{
borders
&=
~
Plasma
::
FrameSvg
::
RightBorder
;
}
if
(
y
()
<=
m_screenToFollow
->
geometry
().
y
())
{
borders
&=
~
Plasma
::
FrameSvg
::
TopBorder
;
}
if
(
y
()
+
height
()
>=
m_screenToFollow
->
geometry
().
y
()
+
m_screenToFollow
->
geometry
().
height
())
{
borders
&=
~
Plasma
::
FrameSvg
::
BottomBorder
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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