summaryrefslogtreecommitdiff
path: root/src/protocols/CTMControl.hpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2025-07-10 12:49:24 +0200
committerVaxry <43317083+vaxerski@users.noreply.github.com>2025-07-10 14:09:00 +0200
commita21882be33f3debe27e327c6b125e17ad438f90e (patch)
treeb3eb6c14d762bf3e25f6364e1ecefb3a84b3339d /src/protocols/CTMControl.hpp
parent37be9a8959d925bae4e5122af0ffe49cc2edda51 (diff)
ctmcontrol: move to unique ptrs
less refcounting, move by rvalue.
Diffstat (limited to 'src/protocols/CTMControl.hpp')
-rw-r--r--src/protocols/CTMControl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocols/CTMControl.hpp b/src/protocols/CTMControl.hpp
index 0f2faca8..2e3a7673 100644
--- a/src/protocols/CTMControl.hpp
+++ b/src/protocols/CTMControl.hpp
@@ -12,14 +12,14 @@ class CMonitor;
class CHyprlandCTMControlResource {
public:
- CHyprlandCTMControlResource(SP<CHyprlandCtmControlManagerV1> resource_);
+ CHyprlandCTMControlResource(UP<CHyprlandCtmControlManagerV1>&& resource_);
~CHyprlandCTMControlResource();
bool good();
void block();
private:
- SP<CHyprlandCtmControlManagerV1> m_resource;
+ UP<CHyprlandCtmControlManagerV1> m_resource;
std::unordered_map<std::string, Mat3x3> m_ctms;
bool m_blocked = false;
@@ -38,7 +38,7 @@ class CHyprlandCTMControlProtocol : public IWaylandProtocol {
bool isCTMAnimationEnabled();
//
- std::vector<SP<CHyprlandCTMControlResource>> m_managers;
+ std::vector<UP<CHyprlandCTMControlResource>> m_managers;
WP<CHyprlandCTMControlResource> m_manager;
//