aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-08-18 20:19:13 +0200
committervaxerski <[email protected]>2024-08-18 20:19:13 +0200
commit50348a3ddbb6bc3367300c9bba2ff682e4a356e3 (patch)
tree89129450e8079a5e07a40e39b0fda507df16e035
parent279ec1c291021479b050c83a0435ac7076c1aee0 (diff)
downloadHyprland-50348a3ddbb6bc3367300c9bba2ff682e4a356e3.tar.gz
Hyprland-50348a3ddbb6bc3367300c9bba2ff682e4a356e3.zip
renderer: pass custom modelines to aq
ref #7390
-rw-r--r--src/render/Renderer.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index b363c287..c2ecbbf3 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -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}));