From deb077c34653eab251bfe71970bb5987913e7c6d Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 29 Dec 2024 19:21:20 +0100 Subject: ctm: add an internal fade animation to ctm transitions --- src/protocols/CTMControl.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/protocols/CTMControl.hpp') diff --git a/src/protocols/CTMControl.hpp b/src/protocols/CTMControl.hpp index 70bc79bc..51820f20 100644 --- a/src/protocols/CTMControl.hpp +++ b/src/protocols/CTMControl.hpp @@ -6,6 +6,8 @@ #include "WaylandProtocol.hpp" #include "hyprland-ctm-control-v1.hpp" #include +#include +#include "../helpers/AnimatedVariable.hpp" class CMonitor; @@ -36,6 +38,14 @@ class CHyprlandCTMControlProtocol : public IWaylandProtocol { // std::vector> m_vManagers; + // + struct SCTMData { + SCTMData(); + Mat3x3 ctmFrom = Mat3x3::identity(), ctmTo = Mat3x3::identity(); + CAnimatedVariable progress; + }; + std::map> m_mCTMDatas; + friend class CHyprlandCTMControlResource; }; -- cgit v1.2.3