diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-21 19:52:30 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-21 19:52:34 +0200 |
| commit | 9977a8bfd4f5fcf932880b72f1271546c401f783 (patch) | |
| tree | 23735162c2557e61c233a47a9f1487479d01faf9 /src/Compositor.cpp | |
| parent | 37128bfd43a3d86d270c09e34f18fe4df48c6b35 (diff) | |
compositor: log more in arrangeMonitors
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index d6cd019f..a6370de3 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2497,11 +2497,15 @@ void CCompositor::arrangeMonitors() { for (auto& m : m_vMonitors) toArrange.push_back(m.get()); + Debug::log(LOG, "arrangeMonitors: %llu to arrange", toArrange.size()); + for (auto it = toArrange.begin(); it != toArrange.end();) { auto m = *it; if (m->activeMonitorRule.offset != Vector2D{-INT32_MAX, -INT32_MAX}) { // explicit. + Debug::log(LOG, "arrangeMonitors: %s explicit [%.2f, %.2f]", m->szName.c_str(), m->activeMonitorRule.offset.x, m->activeMonitorRule.offset.y); + m->moveTo(m->activeMonitorRule.offset); arranged.push_back(m); it = toArrange.erase(it); @@ -2523,6 +2527,7 @@ void CCompositor::arrangeMonitors() { } for (auto& m : toArrange) { + Debug::log(LOG, "arrangeMonitors: %s auto [%.2f, %.2f]", m->szName.c_str(), maxOffset, 0); m->moveTo({maxOffset, 0}); maxOffset += m->vecPosition.x + m->vecSize.x; } @@ -2531,6 +2536,7 @@ void CCompositor::arrangeMonitors() { // and set xwayland positions aka auto for all maxOffset = 0; for (auto& m : m_vMonitors) { + Debug::log(LOG, "arrangeMonitors: %s xwayland [%.2f, %.2f]", m->szName.c_str(), maxOffset, 0); m->vecXWaylandPosition = {maxOffset, 0}; maxOffset += (*PXWLFORCESCALEZERO ? m->vecTransformedSize.x : m->vecSize.x); } |
