renderer: pass custom modelines to aq

ref #7390
This commit is contained in:
Vaxry 2024-08-18 20:19:13 +02:00
parent 279ec1c291
commit 50348a3ddb

View file

@ -1994,17 +1994,9 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
if (pMonitor->output->getBackend()->type() != Aquamarine::eBackendType::AQ_BACKEND_DRM) {
Debug::log(ERR, "Tried to set custom modeline on non-DRM output");
fail = true;
} else {
// FIXME:
// auto* mode = wlr_drm_connector_add_mode(pMonitor->output, &RULE->drmMode);
// if (mode) {
// wlr_output_state_set_mode(pMonitor->state.wlr(), mode);
// pMonitor->customDrmMode = RULE->drmMode;
// } else {
// Debug::log(ERR, "wlr_drm_connector_add_mode failed");
// fail = true;
// }
}
} else
pMonitor->output->state->setCustomMode(makeShared<Aquamarine::SOutputMode>(
Aquamarine::SOutputMode{.pixelSize = {RULE->drmMode.hdisplay, RULE->drmMode.vdisplay}, .refreshRate = RULE->drmMode.vrefresh, .modeInfo = RULE->drmMode}));
} else
pMonitor->output->state->setCustomMode(makeShared<Aquamarine::SOutputMode>(Aquamarine::SOutputMode{.pixelSize = RULE->resolution, .refreshRate = WLRREFRESHRATE}));