From 3ea558f1ae55d0dc7a1d49969c09e6702f197d8e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 27 Apr 2022 16:34:28 +0200 Subject: [PATCH] fix some xwayland size bugs --- src/managers/AnimationManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 59f46804..82e481e8 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -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()); } }