renderer: improvements to wayland surface small() detection
This commit is contained in:
parent
ed3d5053b2
commit
9d2a5fb417
2 changed files with 3 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ bool CWLSurface::small() const {
|
|||
if (!m_pOwner || !exists())
|
||||
return false;
|
||||
|
||||
return m_pOwner->m_vReportedSize.x > m_pWLRSurface->current.buffer_width || m_pOwner->m_vReportedSize.y > m_pWLRSurface->current.buffer_height;
|
||||
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;
|
||||
}
|
||||
|
||||
Vector2D CWLSurface::correctSmallVec() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue