ctm: add an internal fade animation to ctm transitions
This commit is contained in:
parent
3f40d6d936
commit
deb077c346
4 changed files with 68 additions and 2 deletions
|
|
@ -6,6 +6,8 @@
|
|||
#include "WaylandProtocol.hpp"
|
||||
#include "hyprland-ctm-control-v1.hpp"
|
||||
#include <unordered_map>
|
||||
#include <map>
|
||||
#include "../helpers/AnimatedVariable.hpp"
|
||||
|
||||
class CMonitor;
|
||||
|
||||
|
|
@ -36,6 +38,14 @@ class CHyprlandCTMControlProtocol : public IWaylandProtocol {
|
|||
//
|
||||
std::vector<SP<CHyprlandCTMControlResource>> m_vManagers;
|
||||
|
||||
//
|
||||
struct SCTMData {
|
||||
SCTMData();
|
||||
Mat3x3 ctmFrom = Mat3x3::identity(), ctmTo = Mat3x3::identity();
|
||||
CAnimatedVariable<float> progress;
|
||||
};
|
||||
std::map<PHLMONITORREF, std::unique_ptr<SCTMData>> m_mCTMDatas;
|
||||
|
||||
friend class CHyprlandCTMControlResource;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue