From 90f36e3b0033e39dbb86417a81acca201b8a0b92 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 4 Jun 2023 22:12:00 -0700 Subject: [PATCH] Fix tab bar position --- src/TabGroup.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TabGroup.cpp b/src/TabGroup.cpp index 5eec57f..2e0e52e 100644 --- a/src/TabGroup.cpp +++ b/src/TabGroup.cpp @@ -356,8 +356,8 @@ void Hy3TabGroup::updateWithGroup(Hy3Node& node) { static const auto* bar_height = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hy3:tabs:height")->intValue; auto gaps = node.parent == nullptr ? *gaps_out : *gaps_in; - auto tpos = node.position + Vector2D(gaps, gaps); - auto tsize = Vector2D(node.size.x - gaps * 2, *bar_height); + auto tpos = node.position + Vector2D(gaps, gaps) + node.gap_pos_offset; + auto tsize = Vector2D(node.size.x - node.gap_size_offset.x - gaps * 2, *bar_height); this->hidden = node.hidden; if (this->pos.goalv() != tpos) this->pos = tpos;