mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 04:45:58 +01:00
wlsurface: fix small detection
This commit is contained in:
parent
32b3d2b456
commit
a3e20d2d5f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue