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
KWin
Commits
c53b2fa3
Commit
c53b2fa3
authored
Apr 05, 2021
by
David Edmundson
Browse files
Fix crash in Unmanaged without compositing
Without compositing we don't have surfaceItems
BUG: 435322
parent
8bbd186f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/unmanaged.cpp
View file @
c53b2fa3
...
@@ -77,7 +77,9 @@ void Unmanaged::initialize()
...
@@ -77,7 +77,9 @@ void Unmanaged::initialize()
// and us setting up damage tracking. If the client wins we won't get a damage event even
// and us setting up damage tracking. If the client wins we won't get a damage event even
// though the window has been painted. To avoid this we mark the whole window as damaged
// though the window has been painted. To avoid this we mark the whole window as damaged
// and schedule a repaint immediately after creating the damage object.
// and schedule a repaint immediately after creating the damage object.
surfaceItem
()
->
addDamage
(
surfaceItem
()
->
rect
());
if
(
auto
item
=
surfaceItem
())
{
item
->
addDamage
(
item
->
rect
());
}
}
}
bool
Unmanaged
::
track
(
xcb_window_t
w
)
bool
Unmanaged
::
track
(
xcb_window_t
w
)
...
...
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