mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 16:46:00 +01:00
parent
279ec1c291
commit
50348a3ddb
1 changed files with 3 additions and 11 deletions
|
@ -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}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue