monitors: guard output when read

This commit is contained in:
vaxerski
2023-03-16 14:03:40 +00:00
parent d9d57ce39a
commit 5d44ea802a
3 changed files with 12 additions and 0 deletions

View File

@@ -1661,6 +1661,9 @@ void CKeybindManager::forceRendererReload(std::string args) {
bool overAgain = false;
for (auto& m : g_pCompositor->m_vMonitors) {
if (!m->output)
continue;
auto rule = g_pConfigManager->getMonitorRuleFor(m->szName, m->output->description ? m->output->description : "");
if (!g_pHyprRenderer->applyMonitorRule(m.get(), &rule, true)) {
overAgain = true;