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
61e935ea
Commit
61e935ea
authored
Feb 15, 2022
by
Aleix Pol Gonzalez
🐧
Committed by
Marco Martin
Feb 21, 2022
Browse files
PanelView: Do not crash when the state is transitioning
BUG: 373461
parent
524b13ad
Pipeline
#140599
passed with stage
in 8 minutes and 42 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
shell/panelview.cpp
View file @
61e935ea
...
...
@@ -1408,17 +1408,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
;
}
}
}
...
...
Aleix Pol Gonzalez
🐧
@apol
mentioned in commit
3520cd5a
·
Feb 21, 2022
mentioned in commit
3520cd5a
mentioned in commit 3520cd5a6251d568af7a1b286aa041df27851dfe
Toggle commit list
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