renderer: minor fixups for misaligned surface rendering offsets

fixes #5136
This commit is contained in:
Vaxry 2024-03-17 16:08:54 +00:00
parent 3c21f5e07b
commit 30c5911718
2 changed files with 9 additions and 4 deletions

View file

@ -1058,6 +1058,9 @@ bool CWindow::opaque() {
if (m_fAlpha.value() != 1.f || m_fActiveInactiveAlpha.value() != 1.f)
return false;
if (m_vRealSize.goal().floor() != m_vReportedSize)
return false;
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(m_iWorkspaceID);
if (m_pWLSurface.small() && !m_pWLSurface.m_bFillIgnoreSmall)