7c29490cee26ebbeef5e82c894040d704cd7a1c8

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Fix mixed colors if a tab is both urgent and focused

Diff

 1diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp
 2index 729d156fd7e59ee7a8d0e49ecdbccc18f04a6aea..17d7b214d58d00e4e63a594b25258230125b9e34 100644
 3--- a/src/TabGroup.cpp
 4+++ b/src/TabGroup.cpp
 5@@ -95,6 +95,7 @@ void Hy3TabBarEntry::setFocused(bool focused) {
 6 }
 7 
 8 void Hy3TabBarEntry::setUrgent(bool urgent) {
 9+	if (urgent && this->focused.goalf() == 1.0) urgent = false;
10 	if (this->urgent.goalf() != urgent) {
11 		this->urgent = urgent;
12 	}