layout/windowTarget: override maximized box status in updateGeom (#13535)

ref https://github.com/hyprwm/Hyprland/discussions/13525
This commit is contained in:
Vaxry 2026-03-03 12:33:46 +00:00 committed by GitHub
parent 3faddf40d0
commit b06a4b5e13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 69 additions and 0 deletions

View file

@ -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();