From 99314fbe71fe1a0545ed463dc93ef8e7d80f9916 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 4 Apr 2023 00:46:52 +0100 Subject: [PATCH] render: plug missing software cursor unlocks --- src/render/Renderer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index a8ba8b22..f1fdd636 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -826,6 +826,10 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) { if (!wlr_output_damage_attach_render(pMonitor->damage, &hasChanged, &damage)) { Debug::log(ERR, "Couldn't attach render to display %s ???", pMonitor->szName.c_str()); + + if (UNLOCK_SC) + wlr_output_lock_software_cursors(pMonitor->output, false); + return; } @@ -843,6 +847,9 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) { pMonitor->renderingActive = false; + if (UNLOCK_SC) + wlr_output_lock_software_cursors(pMonitor->output, false); + return; }