diff options
| author | Zebra2711 <89755535+Zebra2711@users.noreply.github.com> | 2026-05-01 01:38:05 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-30 19:38:05 +0100 |
| commit | bac49db9a11d5398963f4ad3265a577f8e94dc66 (patch) | |
| tree | a17fb1e35c0440d5f03c309de83d04cc78dd9c2e /src/helpers/Monitor.cpp | |
| parent | 859bbb11e16029bfa5ad6a1418bde23f29bd7d86 (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.cpp | 2 |
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; |
