animationmgr: use realpos and size for border damage

fixes #5239
This commit is contained in:
Vaxry 2024-03-24 03:09:39 +00:00
parent 09e1128da2
commit 86dc46ffea

View file

@ -245,7 +245,7 @@ void CAnimationManager::tick() {
BORDERSIZE + ROUNDINGSIZE); // bottom
// damage for new box
CBox WLRBOXNEW = PWINDOW->getFullWindowBoundingBox();
CBox WLRBOXNEW = {PWINDOW->m_vRealPosition.value(), PWINDOW->m_vRealSize.value()};
const auto PWINDOWWORKSPACE = g_pCompositor->getWorkspaceByID(PWINDOW->m_iWorkspaceID);
if (PWINDOWWORKSPACE)
WLRBOXNEW.translate(PWINDOWWORKSPACE->m_vRenderOffset.value());