aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortomahk <[email protected]>2022-09-19 20:44:33 +0200
committertomahk <[email protected]>2022-09-19 20:44:33 +0200
commit73e19aee6fc9d9754dfcf59f16480172f080f639 (patch)
tree6a44e929217758a09855ae2f5066a52d6a0f5d48
parent3780361b950548612e42a58952f9f7cb82c306f7 (diff)
downloadHyprland-73e19aee6fc9d9754dfcf59f16480172f080f639.tar.gz
Hyprland-73e19aee6fc9d9754dfcf59f16480172f080f639.zip
prevent assert killing Hyprland after reenabling monitor
-rw-r--r--src/helpers/Monitor.cpp4
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
+}