handle layersurfaces better

This commit is contained in:
vaxerski
2022-03-19 14:00:24 +01:00
parent 5ea20cd041
commit 86b6d7f938
3 changed files with 20 additions and 14 deletions

View File

@@ -23,7 +23,9 @@ struct SMonitor {
wlr_output* output = nullptr;
// Double-linked list because we need to have constant mem addresses for signals
std::array<std::list<SLayerSurface>, 4> m_aLayerSurfaceLists;
// We have to store pointers and use raw new/delete because they might be moved between them
// and I am lazy
std::array<std::list<SLayerSurface*>, 4> m_aLayerSurfaceLists;
DYNLISTENER(monitorFrame);
DYNLISTENER(monitorDestroy);