968cadf663a6d5fb514bda8b645e1eb9fbf60e4d

Author
Šimon Brandner <simon.bra.ag@gmail.com>
Committer
Šimon Brandner <simon.bra.ag@gmail.com>
Date

Message

Damage bar when animating workspace slide

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

Diff

 1diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp
 2index 5da614f798528714adbddb4b72507168eda0e988..30ce8a8c86977dd04792d9e166ca1898f74fe7dd 100644
 3--- a/src/TabGroup.cpp
 4+++ b/src/TabGroup.cpp
 5@@ -271,8 +271,6 @@ void Hy3TabBar::tick() {
 6 	}
 7 
 8 	if (this->entries.empty()) this->destroy = true;
 9-
10-	damage();
11 }
12 
13 void Hy3TabBar::damage() {
14@@ -463,6 +461,10 @@ void Hy3TabGroup::tick() {
15 		} else {
16 			if (this->bar.fade_opacity.goal() != 1.0) this->bar.fade_opacity = 1.0;
17 		}
18+
19+		if (this->workspace->m_vRenderOffset.isBeingAnimated()) {
20+			this->bar.damage();
21+		}
22 	}
23 
24 	auto pos = this->pos.value();