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.
This commit is contained in:
parent
e1fff05d0d
commit
211199e864
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue