mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
layout/tab_indicator: Fix negative gap
Regressed in a recent commit that added max1.
This commit is contained in:
@@ -84,7 +84,8 @@ impl TabIndicator {
|
||||
let progress = self.open_anim.as_ref().map_or(1., |a| a.value().max(0.));
|
||||
|
||||
let width = round_max1(self.config.width.0);
|
||||
let gap = round_max1(self.config.gap.0);
|
||||
let gap = self.config.gap.0;
|
||||
let gap = round_max1(gap.abs()).copysign(gap);
|
||||
let gaps_between = round_max1(self.config.gaps_between_tabs.0);
|
||||
|
||||
let position = self.config.position;
|
||||
|
||||
Reference in New Issue
Block a user