diff options
author | tomahk <[email protected]> | 2022-09-19 20:44:33 +0200 |
---|---|---|
committer | tomahk <[email protected]> | 2022-09-19 20:44:33 +0200 |
commit | 73e19aee6fc9d9754dfcf59f16480172f080f639 (patch) | |
tree | 6a44e929217758a09855ae2f5066a52d6a0f5d48 | |
parent | 3780361b950548612e42a58952f9f7cb82c306f7 (diff) | |
download | Hyprland-73e19aee6fc9d9754dfcf59f16480172f080f639.tar.gz Hyprland-73e19aee6fc9d9754dfcf59f16480172f080f639.zip |
prevent assert killing Hyprland after reenabling monitor
-rw-r--r-- | src/helpers/Monitor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 509f292d..c3d56dfc 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -65,6 +65,8 @@ void CMonitor::onConnect(bool noRule) { } if (!m_bRenderingInitPassed) { + output->allocator = NULL; + output->renderer = NULL; wlr_output_init_render(output, g_pCompositor->m_sWLRAllocator, g_pCompositor->m_sWLRRenderer); m_bRenderingInitPassed = true; } @@ -356,4 +358,4 @@ void CMonitor::setMirror(const std::string& mirrorOf) { g_pCompositor->m_pLastMonitor = g_pCompositor->m_vMonitors.front().get(); } -}
\ No newline at end of file +} |