summaryrefslogtreecommitdiff
path: root/src/layout/target/WindowTarget.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-03 12:33:46 +0000
committerGitHub <noreply@github.com>2026-03-03 12:33:46 +0000
commitb06a4b5e130710ee66d0a9b04780d99777d87b47 (patch)
tree5702413ae991e0f710b0b628034a6415db09c372 /src/layout/target/WindowTarget.cpp
parent3faddf40d08fe00738cfe7b85dc48953c27012bb (diff)
layout/windowTarget: override maximized box status in updateGeom (#13535)
ref https://github.com/hyprwm/Hyprland/discussions/13525
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();