5a7659088221e6dc01c7596af20f4b4e6c719ee9

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

Message

Fix tab stencil area

Diff

 1diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp
 2index 5b3681b557965943889cfd29f1c1e9804e2c2c9b..a85f5e47fcbc7d5885b88e6394196808fe8bdbbd 100644
 3--- a/src/TabGroup.cpp
 4+++ b/src/TabGroup.cpp
 5@@ -306,7 +306,7 @@ void Hy3TabGroup::renderTabBar() {
 6 			if (!g_pCompositor->windowExists(window)) continue;
 7 
 8 			auto wpos = window->m_vRealPosition.vec();
 9-			auto wsize = window->m_vRealPosition.vec();
10+			auto wsize = window->m_vRealSize.vec();
11 
12 			wlr_box window_box = { wpos.x, wpos.y, wsize.x, wsize.y };
13 			scaleBox(&window_box, scale);
14@@ -318,7 +318,7 @@ void Hy3TabGroup::renderTabBar() {
15 
16 		glStencilMask(0x00);
17 		glStencilFunc(GL_EQUAL, 0, 0xff);
18-		glStencilOp(GL_KEEP, GL_KEEP, GL_INCR);
19+		glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
20 	}
21 
22 	auto render_entry = [&](Hy3TabBarEntry& entry) {