summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 2d3d4db9..fbf63243 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -257,7 +257,10 @@ CBox CWindow::getWindowBoxUnified(uint64_t properties) {
return {PMONITOR->m_position.x, PMONITOR->m_position.y, PMONITOR->m_size.x, PMONITOR->m_size.y};
}
- CBox box = {m_realPosition->value().x, m_realPosition->value().y, m_realSize->value().x, m_realSize->value().y};
+ const auto POS = m_realPosition->value();
+ const auto SIZE = m_realSize->value();
+
+ CBox box{POS, SIZE};
box.addExtents(getWindowExtentsUnified(properties));
return box;