fix some xwayland size bugs

This commit is contained in:
vaxerski 2022-04-27 16:34:28 +02:00
parent d35019f185
commit 3ea558f1ae

View file

@ -47,6 +47,10 @@ void CAnimationManager::tick() {
av->warp();
g_pHyprRenderer->damageBox(&WLRBOXPREV);
g_pHyprRenderer->damageWindow(PWINDOW);
// set size and pos if valid
if (g_pCompositor->windowValidMapped(PWINDOW))
g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv());
continue;
}
@ -120,6 +124,10 @@ void CAnimationManager::tick() {
// damage the window
g_pHyprRenderer->damageBox(&WLRBOXPREV);
g_pHyprRenderer->damageWindow(PWINDOW);
// set size and pos if valid
if (g_pCompositor->windowValidMapped(PWINDOW))
g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv());
}
}