davidedmundson added a comment.
> isn't a bit heavy building a list just for this? std::max takes an initialiser-list directly as an argument, it's not converting this into a vector or anything that would invovle copying or mallocs. REPOSITORY R108 KWin BRANCH master REVISION DETAIL https://phabricator.kde.org/D6164 To: davidedmundson, #plasma, mart Cc: graesslin, mart, plasma-devel, kwin, #kwin, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, lukas