summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
diff options
context:
space:
mode:
authorZebra2711 <89755535+Zebra2711@users.noreply.github.com>2026-05-01 01:38:05 +0700
committerGitHub <noreply@github.com>2026-04-30 19:38:05 +0100
commitbac49db9a11d5398963f4ad3265a577f8e94dc66 (patch)
treea17fb1e35c0440d5f03c309de83d04cc78dd9c2e /src/helpers/Monitor.cpp
parent859bbb11e16029bfa5ad6a1418bde23f29bd7d86 (diff)
monitor: fix centered floating windows off-screen in special workspace (#14203)
Signed-off-by: Zebra2711 <zebra2711t@gmail.com>
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 657a8c11..a5195a94 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -1564,7 +1564,7 @@ void CMonitor::setSpecialWorkspace(const PHLWORKSPACE& pWorkspace) {
if (VECNOTINRECT(MIDDLE, PMONFROMMIDDLE->m_position.x, PMONFROMMIDDLE->m_position.y, PMONFROMMIDDLE->m_position.x + PMONFROMMIDDLE->m_size.x,
PMONFROMMIDDLE->m_position.y + PMONFROMMIDDLE->m_size.y)) {
// not on any monitor, center
- pos = middle() / 2.f - w->m_realSize->goal() / 2.f;
+ pos = middle() - w->m_realSize->goal() / 2.f;
} else
pos = pos - PMONFROMMIDDLE->m_position + m_position;