graesslin created this revision. graesslin added reviewers: KWin, Plasma. Restricted Application added a project: KWin. Restricted Application added subscribers: kwin, plasma-devel.
REVISION SUMMARY While investigating a repaint issue I had a hard time to work with the code and decided to change it to a more modern variant. Instead of duplicating the same logic for each of the lists it's now moved into a dedicated templated method which used std::any_of. Which is exactly the algorithm we need: if there is any window with a non empty repaints region it should return true. REPOSITORY rKWIN KWin BRANCH window-repaints-pending-std-andy-of REVISION DETAIL https://phabricator.kde.org/D3397 AFFECTED FILES composite.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #kwin, #plasma Cc: plasma-devel, kwin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas