mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 05:09:49 +01:00
prevent assert killing Hyprland after reenabling monitor
This commit is contained in:
parent
3780361b95
commit
73e19aee6f
1 changed files with 3 additions and 1 deletions
|
@ -65,6 +65,8 @@ void CMonitor::onConnect(bool noRule) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_bRenderingInitPassed) {
|
if (!m_bRenderingInitPassed) {
|
||||||
|
output->allocator = NULL;
|
||||||
|
output->renderer = NULL;
|
||||||
wlr_output_init_render(output, g_pCompositor->m_sWLRAllocator, g_pCompositor->m_sWLRRenderer);
|
wlr_output_init_render(output, g_pCompositor->m_sWLRAllocator, g_pCompositor->m_sWLRRenderer);
|
||||||
m_bRenderingInitPassed = true;
|
m_bRenderingInitPassed = true;
|
||||||
}
|
}
|
||||||
|
@ -356,4 +358,4 @@ void CMonitor::setMirror(const std::string& mirrorOf) {
|
||||||
|
|
||||||
g_pCompositor->m_pLastMonitor = g_pCompositor->m_vMonitors.front().get();
|
g_pCompositor->m_pLastMonitor = g_pCompositor->m_vMonitors.front().get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue