avoid applying offset twice in onConnect

This commit is contained in:
vaxerski 2022-10-28 23:23:23 +01:00
parent ea7f617df6
commit 341a0616aa
1 changed files with 0 additions and 4 deletions

View File

@ -99,10 +99,6 @@ void CMonitor::onConnect(bool noRule) {
wlr_output_enable(output, 1);
// TODO: this doesn't seem to set the X and Y correctly,
// wlr_output_layout_output_coords returns invalid values, I think...
wlr_output_layout_add(g_pCompositor->m_sWLROutputLayout, output, monitorRule.offset.x, monitorRule.offset.y);
// set mode, also applies
if (!noRule)
g_pHyprRenderer->applyMonitorRule(this, &monitorRule, true);