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;