f4f92d19b37666b74950aac64acb8e8354eba65d

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

Message

fix tab bars rendering in invisible workspaces

Fixes #129

Diff

 1diff --git a/CHANGELOG.md b/CHANGELOG.md
 2index 9227155329492c3e8659a7f6ff69a3efc3552062..ee95e66cf6545d8bf164f554c97aa8f53bfd0493 100644
 3--- a/CHANGELOG.md
 4+++ b/CHANGELOG.md
 5@@ -6,6 +6,7 @@
 6 - Fixed tab bars clipping when switching workspaces with slidevert
 7 - Improved performance of tab bars
 8 - Tab bars now use windowsMove for all animations
 9+- Fixed tab bars rendering in the wrong workspace
10 
11 # hl0.43.0 and before
12 
13diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
14index f634eaa68d6b12f55ac865d38301492bc0bacdb1..6f09be40ecedbd5ac641ba6f41d2d88429d778ad 100644
15--- a/src/Hy3Layout.cpp
16+++ b/src/Hy3Layout.cpp
17@@ -1438,6 +1438,7 @@ void Hy3Layout::renderHook(void*, SCallbackInfo&, std::any data) {
18 		for (auto& entry: g_Hy3Layout->tab_groups) {
19 			if (!entry.hidden
20 			    && entry.target_window->m_iMonitorID == g_pHyprOpenGL->m_RenderData.pMonitor->ID
21+					&& entry.target_window->m_pWorkspace->m_bVisible
22 			    && std::find(rendered_groups.begin(), rendered_groups.end(), &entry)
23 			           == rendered_groups.end())
24 			{