Damage bar when animating workspace slide

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2024-06-04 09:24:42 +02:00
parent 445381f871
commit 968cadf663
No known key found for this signature in database
GPG key ID: BB126BDA1FFBF42B

View file

@ -271,8 +271,6 @@ void Hy3TabBar::tick() {
} }
if (this->entries.empty()) this->destroy = true; if (this->entries.empty()) this->destroy = true;
damage();
} }
void Hy3TabBar::damage() { void Hy3TabBar::damage() {
@ -463,6 +461,10 @@ void Hy3TabGroup::tick() {
} else { } else {
if (this->bar.fade_opacity.goal() != 1.0) this->bar.fade_opacity = 1.0; 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(); auto pos = this->pos.value();