From 211199e864a4d8d7c1c6e0ebf38f58f0c7debaa7 Mon Sep 17 00:00:00 2001 From: jmanc3 Date: Sun, 27 Jul 2025 08:11:07 -0500 Subject: [PATCH] fix: include decorations in visibleOnMonitor calculation (#11232) Fixes: https://github.com/hyprwm/Hyprland/discussions/11203 The window turned invisible when just outside the monitor bounds, even though it should have stayed visible given its decorations. The fix was to include the decorations when determining if a window is on a monitor. --- src/desktop/Window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 6563727a..a42a27fe 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -1261,6 +1261,9 @@ void CWindow::setSuspended(bool suspend) { bool CWindow::visibleOnMonitor(PHLMONITOR pMonitor) { CBox wbox = {m_realPosition->value(), m_realSize->value()}; + if (m_isFloating) + wbox = getFullWindowBoundingBox(); + return !wbox.intersection({pMonitor->m_position, pMonitor->m_size}).empty(); }