From 86b6d7f93807087967523bb5f7fe4f6f73f51683 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 19 Mar 2022 14:00:24 +0100 Subject: handle layersurfaces better --- src/helpers/Monitor.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/helpers') diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp index b93779fc..958a0375 100644 --- a/src/helpers/Monitor.hpp +++ b/src/helpers/Monitor.hpp @@ -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, 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, 4> m_aLayerSurfaceLists; DYNLISTENER(monitorFrame); DYNLISTENER(monitorDestroy); -- cgit v1.2.3