aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/Renderer.cpp
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/render/Renderer.cpp
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/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 310d45af..f388ec37 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1498,6 +1498,11 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(CMonitor* pMonitor) {
if (inFD >= 0)
pMonitor->output->state->setExplicitInFence(inFD);
+ if (pMonitor->ctmUpdated) {
+ pMonitor->ctmUpdated = false;
+ pMonitor->output->state->setCTM(pMonitor->ctm);
+ }
+
bool ok = pMonitor->state.commit();
if (!ok) {
if (inFD >= 0) {