Skip to content

Commit

Permalink
Don't detach list of damaged windows when sending 'done' events
Browse files Browse the repository at this point in the history
Summary: Most likely, someone forgot to add `qAsConst`.

Reviewers: #kwin, broulik

Reviewed By: broulik

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13830
  • Loading branch information
zzag committed Jul 2, 2018
1 parent e7d6f12 commit 89001b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ void Compositor::performCompositing()
m_timeSinceStart += m_timeSinceLastVBlank;

if (waylandServer()) {
for (Toplevel *win : damaged) {
for (Toplevel *win : qAsConst(damaged)) {
if (auto surface = win->surface()) {
surface->frameRendered(m_timeSinceStart);
}
Expand Down

0 comments on commit 89001b1

Please sign in to comment.