diff options
| author | Alessio Molinari <alessiomolinar@gmail.com> | 2024-02-18 03:24:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-18 02:24:01 +0000 |
| commit | 7e8bcd675de15ee2498f1aa15c5b335e9a9a55f0 (patch) | |
| tree | 0bb6ded95d73ad8a76051242ffe4437609cc0d8f /src/render/Renderer.cpp | |
| parent | 683a4b07c514fa3c13cdf09e475283a69fcc7653 (diff) | |
monitors: fix outputmgr nullptr crash (#4738)
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 4032e8d7..6e3f92c1 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1340,8 +1340,6 @@ void CHyprRenderer::outputMgrApplyTest(wlr_output_configuration_v1* config, bool std::string commandForCfg = ""; const auto OUTPUT = head->state.output; - const auto PMONITOR = g_pCompositor->getMonitorFromOutput(OUTPUT); - RASSERT(PMONITOR, "nullptr monitor in outputMgrApplyTest"); commandForCfg += std::string(OUTPUT->name) + ","; @@ -1352,6 +1350,8 @@ void CHyprRenderer::outputMgrApplyTest(wlr_output_configuration_v1* config, bool continue; } + const auto PMONITOR = g_pCompositor->getRealMonitorFromOutput(OUTPUT); + RASSERT(PMONITOR, "nullptr monitor in outputMgrApplyTest"); wlr_output_state_set_enabled(PMONITOR->state.wlr(), head->state.enabled); if (head->state.mode) |
