Commit 53d25c72 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Remove assumption that the workspace starts at (0, 0)

If a leftmost output is temporarily disabled but outputs on the right
hand side are not moved, some windows may stop being movable because the
Workspace will return bad FullArea. In order to improve handling of
that case, make the FullArea same as the workspace geometry.
parent 7d5d3592
Pipeline #200446 failed with stage
in 33 minutes and 8 seconds
......@@ -2262,7 +2262,7 @@ QRect Workspace::clientArea(clientAreaOption opt, const Output *output, const Vi
workArea = m_workAreas.value(desktop);
if (workArea.isNull()) {
workArea = is_multihead ? effectiveOutput->geometry() : QRect(QPoint(0, 0), m_geometry.size());
workArea = is_multihead ? effectiveOutput->geometry() : m_geometry;
}
switch (opt) {
......@@ -2277,7 +2277,7 @@ QRect Workspace::clientArea(clientAreaOption opt, const Output *output, const Vi
case WorkArea:
return is_multihead ? screenArea : workArea;
case FullArea:
return QRect(QPoint(0, 0), m_geometry.size());
return m_geometry;
default:
Q_UNREACHABLE();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment