aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-10-08 14:39:15 +0100
committervaxerski <[email protected]>2024-10-08 14:39:15 +0100
commit16e39e0c955d7d6a19e7d21f8ee895307d9bc608 (patch)
treebc910dcdd13488188385d143657d743ffc513d83
parent698e8950c2682a32dd1a5a0e82b2905a554605c2 (diff)
downloadHyprland-ctm.tar.gz
Hyprland-ctm.zip
FORMATTTTctm
-rw-r--r--src/protocols/CTMControl.cpp3
-rw-r--r--src/protocols/CTMControl.hpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/protocols/CTMControl.cpp b/src/protocols/CTMControl.cpp
index 90621d16..f2a54c6f 100644
--- a/src/protocols/CTMControl.cpp
+++ b/src/protocols/CTMControl.cpp
@@ -11,7 +11,6 @@ CHyprlandCTMControlResource::CHyprlandCTMControlResource(SP<CHyprlandCtmControlM
resource->setSetCtmForOutput([this](CHyprlandCtmControlManagerV1* r, wl_resource* output, wl_fixed_t mat0, wl_fixed_t mat1, wl_fixed_t mat2, wl_fixed_t mat3, wl_fixed_t mat4,
wl_fixed_t mat5, wl_fixed_t mat6, wl_fixed_t mat7, wl_fixed_t mat8) {
-
const auto OUTPUTRESOURCE = CWLOutputResource::fromResource(output);
if (!OUTPUTRESOURCE)
@@ -37,7 +36,7 @@ CHyprlandCTMControlResource::CHyprlandCTMControlResource(SP<CHyprlandCtmControlM
LOGM(LOG, "CTM set for output {}: {}", PMONITOR->szName, ctms.at(PMONITOR->szName).toString());
});
- resource->setCommit([this] (CHyprlandCtmControlManagerV1 *r) {
+ resource->setCommit([this](CHyprlandCtmControlManagerV1* r) {
LOGM(LOG, "Committing ctms to outputs");
for (auto& m : g_pCompositor->m_vMonitors) {
diff --git a/src/protocols/CTMControl.hpp b/src/protocols/CTMControl.hpp
index 300a28e2..08f1b0e8 100644
--- a/src/protocols/CTMControl.hpp
+++ b/src/protocols/CTMControl.hpp
@@ -17,7 +17,7 @@ class CHyprlandCTMControlResource {
bool good();
private:
- SP<CHyprlandCtmControlManagerV1> resource;
+ SP<CHyprlandCtmControlManagerV1> resource;
std::unordered_map<std::string, Mat3x3> ctms;
};