[Scene] Port from QRegion::rects() to QRegion iterators
ClosedPublic

Authored by broulik on Dec 1 2017, 12:24 PM.

Details

Summary

Also add a reseve() call

Test Plan

Windows and decoration painted normally

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Dec 1 2017, 12:24 PM
Restricted Application added a project: KWin. · View Herald TranscriptDec 1 2017, 12:24 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
broulik requested review of this revision.Dec 1 2017, 12:24 PM
fredrik added a subscriber: fredrik.Dec 1 2017, 4:10 PM
fredrik added inline comments.
scene.cpp
902–903

operator & doesn't combine; it intersects.

broulik updated this revision to Diff 23237.Dec 1 2017, 9:41 PM
  • Fix variable name
  • Use range for
graesslin accepted this revision.Dec 2 2017, 6:56 AM
This revision is now accepted and ready to land.Dec 2 2017, 6:56 AM
This revision was automatically updated to reflect the committed changes.