diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-16 14:03:40 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-03-16 14:03:40 +0000 |
| commit | 5d44ea802a604edfcc822c9f2376bb3881f3e805 (patch) | |
| tree | d7100204861d272e83f099937c855ef8d6c7e029 /src/managers/KeybindManager.cpp | |
| parent | d9d57ce39ac25fd8bbfe88ec9d3bccb1e2df8650 (diff) | |
monitors: guard output when read
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 9d652932..3b0a6678 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -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; |
