Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/improve monitor mode selection #8804

Merged
merged 11 commits into from
Dec 28, 2024
2 changes: 1 addition & 1 deletion src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ void CCompositor::initAllSignals() {

for (auto const& m : m_vMonitors) {
scheduleFrameForMonitor(m);
g_pHyprRenderer->applyMonitorRule(m, &m->activeMonitorRule, true);
m->applyMonitorRule(&m->activeMonitorRule, true);
}

g_pConfigManager->m_bWantsMonitorReload = true;
Expand Down
4 changes: 2 additions & 2 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ void CConfigManager::performMonitorReload() {

auto rule = getMonitorRuleFor(m);

if (!g_pHyprRenderer->applyMonitorRule(m, &rule)) {
if (!m->applyMonitorRule(&rule)) {
overAgain = true;
break;
}
Expand Down Expand Up @@ -1553,7 +1553,7 @@ void CConfigManager::ensureMonitorStatus() {
auto rule = getMonitorRuleFor(rm);

if (rule.disabled == rm->m_bEnabled)
g_pHyprRenderer->applyMonitorRule(rm, &rule);
rm->applyMonitorRule(&rule);
}
}

Expand Down
Loading
Loading