renderer: clip floating boxes on slide anim

fixes #3514
This commit is contained in:
Vaxry
2023-11-16 20:20:41 +00:00
parent 4868d4dfd3
commit a34e192433
2 changed files with 13 additions and 1 deletions

View File

@@ -213,6 +213,12 @@ void CAnimationManager::tick() {
continue;
w->updateWindowDecos();
if (w->m_bIsFloating) {
auto bb = w->getFullWindowBoundingBox();
bb.translate(PWORKSPACE->m_vRenderOffset.vec());
g_pHyprRenderer->damageBox(&bb);
}
}
} else if (PLAYER) {
if (PLAYER->layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || PLAYER->layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM)