mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kwin: use QMutableListIterator<T> for iteration in Compositor::performCompositing()
the list is modified while being iterated over Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ca6280368c
commit
affb5c58de
1 changed files with 4 additions and 2 deletions
|
@ -527,9 +527,11 @@ void Compositor::performCompositing()
|
|||
// TODO ?
|
||||
// this cannot be used so carelessly - needs protections against broken clients, the window
|
||||
// should not get focus before it's displayed, handle unredirected windows properly and so on.
|
||||
foreach (Toplevel *t, windows) {
|
||||
QMutableListIterator<Toplevel*> windows_it(windows);
|
||||
while (windows_it.hasNext()) {
|
||||
const Toplevel *t = windows_it.next();
|
||||
if (!t->readyForPainting())
|
||||
windows.removeAll(t);
|
||||
windows_it.remove();
|
||||
}
|
||||
|
||||
QRegion repaints = repaints_region;
|
||||
|
|
Loading…
Add table
Reference in a new issue