mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-09 01:09:49 +01:00
compositor: log more in arrangeMonitors
This commit is contained in:
parent
37128bfd43
commit
9977a8bfd4
1 changed files with 6 additions and 0 deletions
|
@ -2497,11 +2497,15 @@ void CCompositor::arrangeMonitors() {
|
||||||
for (auto& m : m_vMonitors)
|
for (auto& m : m_vMonitors)
|
||||||
toArrange.push_back(m.get());
|
toArrange.push_back(m.get());
|
||||||
|
|
||||||
|
Debug::log(LOG, "arrangeMonitors: %llu to arrange", toArrange.size());
|
||||||
|
|
||||||
for (auto it = toArrange.begin(); it != toArrange.end();) {
|
for (auto it = toArrange.begin(); it != toArrange.end();) {
|
||||||
auto m = *it;
|
auto m = *it;
|
||||||
|
|
||||||
if (m->activeMonitorRule.offset != Vector2D{-INT32_MAX, -INT32_MAX}) {
|
if (m->activeMonitorRule.offset != Vector2D{-INT32_MAX, -INT32_MAX}) {
|
||||||
// explicit.
|
// 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);
|
m->moveTo(m->activeMonitorRule.offset);
|
||||||
arranged.push_back(m);
|
arranged.push_back(m);
|
||||||
it = toArrange.erase(it);
|
it = toArrange.erase(it);
|
||||||
|
@ -2523,6 +2527,7 @@ void CCompositor::arrangeMonitors() {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto& m : toArrange) {
|
for (auto& m : toArrange) {
|
||||||
|
Debug::log(LOG, "arrangeMonitors: %s auto [%.2f, %.2f]", m->szName.c_str(), maxOffset, 0);
|
||||||
m->moveTo({maxOffset, 0});
|
m->moveTo({maxOffset, 0});
|
||||||
maxOffset += m->vecPosition.x + m->vecSize.x;
|
maxOffset += m->vecPosition.x + m->vecSize.x;
|
||||||
}
|
}
|
||||||
|
@ -2531,6 +2536,7 @@ void CCompositor::arrangeMonitors() {
|
||||||
// and set xwayland positions aka auto for all
|
// and set xwayland positions aka auto for all
|
||||||
maxOffset = 0;
|
maxOffset = 0;
|
||||||
for (auto& m : m_vMonitors) {
|
for (auto& m : m_vMonitors) {
|
||||||
|
Debug::log(LOG, "arrangeMonitors: %s xwayland [%.2f, %.2f]", m->szName.c_str(), maxOffset, 0);
|
||||||
m->vecXWaylandPosition = {maxOffset, 0};
|
m->vecXWaylandPosition = {maxOffset, 0};
|
||||||
maxOffset += (*PXWLFORCESCALEZERO ? m->vecTransformedSize.x : m->vecSize.x);
|
maxOffset += (*PXWLFORCESCALEZERO ? m->vecTransformedSize.x : m->vecSize.x);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue