mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 23:06:00 +01:00
fix some xwayland size bugs
This commit is contained in:
parent
d35019f185
commit
3ea558f1ae
1 changed files with 8 additions and 0 deletions
|
@ -47,6 +47,10 @@ void CAnimationManager::tick() {
|
||||||
av->warp();
|
av->warp();
|
||||||
g_pHyprRenderer->damageBox(&WLRBOXPREV);
|
g_pHyprRenderer->damageBox(&WLRBOXPREV);
|
||||||
g_pHyprRenderer->damageWindow(PWINDOW);
|
g_pHyprRenderer->damageWindow(PWINDOW);
|
||||||
|
|
||||||
|
// set size and pos if valid
|
||||||
|
if (g_pCompositor->windowValidMapped(PWINDOW))
|
||||||
|
g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,6 +124,10 @@ void CAnimationManager::tick() {
|
||||||
// damage the window
|
// damage the window
|
||||||
g_pHyprRenderer->damageBox(&WLRBOXPREV);
|
g_pHyprRenderer->damageBox(&WLRBOXPREV);
|
||||||
g_pHyprRenderer->damageWindow(PWINDOW);
|
g_pHyprRenderer->damageWindow(PWINDOW);
|
||||||
|
|
||||||
|
// set size and pos if valid
|
||||||
|
if (g_pCompositor->windowValidMapped(PWINDOW))
|
||||||
|
g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue