Fix tab bar position

This commit is contained in:
outfoxxed 2023-06-04 22:12:00 -07:00
parent c74b108c29
commit 90f36e3b00
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -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;