summaryrefslogtreecommitdiff
path: root/src/layout/target/WindowTarget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/target/WindowTarget.cpp')
-rw-r--r--src/layout/target/WindowTarget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/layout/target/WindowTarget.cpp b/src/layout/target/WindowTarget.cpp
index 15ac495b..ec4efb03 100644
--- a/src/layout/target/WindowTarget.cpp
+++ b/src/layout/target/WindowTarget.cpp
@@ -61,6 +61,11 @@ void CWindowTarget::updatePos() {
// Tiled is more complicated.
+ // if we are in maximized, force the box to be max work area.
+ // TODO: this shouldn't be here.
+ if (fullscreenMode() == FSMODE_MAXIMIZED)
+ ITarget::setPositionGlobal(m_space->workArea(floating()));
+
const auto PMONITOR = m_space->workspace()->m_monitor;
const auto PWORKSPACE = m_space->workspace();