aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-04 17:39:56 +0000
committerVaxry <[email protected]>2023-11-04 17:39:56 +0000
commita3e20d2d5f32f5d6e489bd5fa83a8fb6d0da77af (patch)
tree74a9e44099f8ff723c41893c9fe777651d3827c7
parent32b3d2b4560b4a5c986a564ae2220312c22fcafd (diff)
downloadHyprland-a3e20d2d5f32f5d6e489bd5fa83a8fb6d0da77af.tar.gz
Hyprland-a3e20d2d5f32f5d6e489bd5fa83a8fb6d0da77af.zip
wlsurface: fix small detection
-rw-r--r--src/helpers/WLSurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/WLSurface.cpp b/src/helpers/WLSurface.cpp
index 33109b94..256c89b8 100644
--- a/src/helpers/WLSurface.cpp
+++ b/src/helpers/WLSurface.cpp
@@ -31,7 +31,7 @@ bool CWLSurface::small() const {
if (!m_pOwner || !exists())
return false;
- return std::abs(m_pOwner->m_vReportedSize.x - m_pWLRSurface->current.buffer_width) > 1 || std::abs(m_pOwner->m_vReportedSize.y - m_pWLRSurface->current.buffer_height) > 1;
+ return m_pOwner->m_vReportedSize.x > m_pWLRSurface->current.buffer_width + 1 || m_pOwner->m_vReportedSize.y > m_pWLRSurface->current.buffer_height + 1;
}
Vector2D CWLSurface::correctSmallVec() const {