diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-11-19 16:58:14 +0000 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-11-19 16:58:14 +0000 |
| commit | 1f7223729166aaafc6babfb1a398c81e5c176f8d (patch) | |
| tree | b008db486443338dc6492c6e3f085dfd3849d004 /src/helpers/Monitor.cpp | |
| parent | e427d9f622d852c20d0f24966dbe35a34f600de4 (diff) | |
Fix incorrect layout positions in mirror re-add
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index cae53904..eb481748 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -327,7 +327,7 @@ void CMonitor::setMirror(const std::string& mirrorOf) { setupDefaultWS(RULE); - wlr_output_layout_add(g_pCompositor->m_sWLROutputLayout, output, (int)vecPosition.x, (int)vecPosition.y); + g_pHyprRenderer->applyMonitorRule(this, (SMonitorRule*)&RULE, true); // will apply the offset and stuff } else { CMonitor* BACKUPMON = nullptr; for (auto& m : g_pCompositor->m_vMonitors) { |
