Use QVector in paintGenericScreen

Summary:
Given that QList<T> will allocate items on the heap when sizeof(T) is
bigger than sizeof(void *), which is the case for Phase2Data, use
QVector instead.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18198
This commit is contained in:
Vlad Zagorodniy 2019-01-11 21:55:04 +02:00
parent 4fa98b32e9
commit 548626bb4c

View file

@ -206,7 +206,7 @@ void Scene::paintGenericScreen(int orig_mask, ScreenPaintData)
if (!(orig_mask & PAINT_SCREEN_BACKGROUND_FIRST)) {
paintBackground(infiniteRegion());
}
QList< Phase2Data > phase2;
QVector<Phase2Data> phase2;
foreach (Window * w, stacking_order) { // bottom to top
Toplevel* topw = w->window();