From 968cadf663a6d5fb514bda8b645e1eb9fbf60e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 4 Jun 2024 09:24:42 +0200 Subject: [PATCH] Damage bar when animating workspace slide MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/TabGroup.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp index 5da614f..30ce8a8 100644 --- a/src/TabGroup.cpp +++ b/src/TabGroup.cpp @@ -271,8 +271,6 @@ void Hy3TabBar::tick() { } if (this->entries.empty()) this->destroy = true; - - damage(); } void Hy3TabBar::damage() { @@ -463,6 +461,10 @@ void Hy3TabGroup::tick() { } else { if (this->bar.fade_opacity.goal() != 1.0) this->bar.fade_opacity = 1.0; } + + if (this->workspace->m_vRenderOffset.isBeingAnimated()) { + this->bar.damage(); + } } auto pos = this->pos.value();