aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/helpers/Monitor.hpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-10-08 16:59:15 +0100
committerGitHub <[email protected]>2024-10-08 16:59:15 +0100
commit1bf63dfdcd76c09137b4647f9af2c5ebc9fc6e34 (patch)
treee423ee76ef6d27a1178349d3c45737ad4191808d /src/helpers/Monitor.hpp
parente0cfbec66b97edb2957508152f32e77a1b181afc (diff)
downloadHyprland-1bf63dfdcd76c09137b4647f9af2c5ebc9fc6e34.tar.gz
Hyprland-1bf63dfdcd76c09137b4647f9af2c5ebc9fc6e34.zip
protocols: Add support for hyprland-ctm-control-v1 (#8023)
* initial ctm support * flake.lock: update * Meson: bump required versions and add ctm proto --------- Co-authored-by: Mihai Fufezan <[email protected]>
Diffstat (limited to 'src/helpers/Monitor.hpp')
-rw-r--r--src/helpers/Monitor.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp
index 2a2edab6..f5068dba 100644
--- a/src/helpers/Monitor.hpp
+++ b/src/helpers/Monitor.hpp
@@ -131,6 +131,10 @@ class CMonitor {
CMonitor* pMirrorOf = nullptr;
std::vector<CMonitor*> mirrors;
+ // ctm
+ Mat3x3 ctm = Mat3x3::identity();
+ bool ctmUpdated = false;
+
// for tearing
PHLWINDOWREF solitaryClient;
@@ -179,6 +183,7 @@ class CMonitor {
CBox logicalBox();
void scheduleDone();
bool attemptDirectScanout();
+ void setCTM(const Mat3x3& ctm);
bool m_bEnabled = false;
bool m_bRenderingInitPassed = false;