summaryrefslogtreecommitdiff
path: root/src/managers/CursorManager.hpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2024-06-22 00:40:45 +0200
committerGitHub <noreply@github.com>2024-06-22 00:40:45 +0200
commitfa022901cf2c9acdae9e9a24a68b9148d44f8627 (patch)
tree5bb971b1d635505ba727eb8dacc6b6e3a9a086d5 /src/managers/CursorManager.hpp
parent4a8b13ea4f8e5111390471c9212d10d4d032e837 (diff)
surface: add virtual destructor to surfacerole to avoid undefined behaviour (#6620)
* surfacerole: add virtual destructor all classes that will be derived from should have a virtual destructor otherwise deleting an instance via pointer to a base class is undefined behaviour, layershell/xdgshell hits this with std::default_delete in the new sharedptr implentation. * includes: fix missing includes fix missing includes for no precompiled headers builds, and remove a redefiniton of a macro already defined in macros.hpp
Diffstat (limited to 'src/managers/CursorManager.hpp')
-rw-r--r--src/managers/CursorManager.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/managers/CursorManager.hpp b/src/managers/CursorManager.hpp
index f983efbb..3ee98ca6 100644
--- a/src/managers/CursorManager.hpp
+++ b/src/managers/CursorManager.hpp
@@ -5,6 +5,7 @@
#include <memory>
#include "../includes.hpp"
#include "../helpers/math/Math.hpp"
+#include "../helpers/memory/Memory.hpp"
struct wlr_buffer;
struct wlr_xcursor_manager;