mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:09:50 +01:00
avoid applying offset twice in onConnect
This commit is contained in:
parent
ea7f617df6
commit
341a0616aa
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue