diff options
author | vaxerski <[email protected]> | 2022-04-27 16:34:28 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-04-27 16:34:28 +0200 |
commit | 0144bd22060a447c336dca8e71f42a9a6a760e59 (patch) | |
tree | 960cd63ec65952c1049a56a3093e4c9aa82b2dcb | |
parent | 7d03328ef9aebb8671303c6245563a943723e1fc (diff) | |
download | Hyprland-0144bd22060a447c336dca8e71f42a9a6a760e59.tar.gz Hyprland-0144bd22060a447c336dca8e71f42a9a6a760e59.zip |
fix some xwayland size bugstablet-tools
-rw-r--r-- | src/managers/AnimationManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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()); } } |