monitors: guard output when read
This commit is contained in:
parent
d9d57ce39a
commit
5d44ea802a
3 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue