You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Indicator not shown when stack width < minimum width of stacked window. [Original: Iterm icon is not visible] #32
First of all thanks for writing this scripts :) nice addition to yabai 💯
Grouping by stackId is buggy. Assumption to make stackId based on x+y+w+h is incorrect, as some windows can have different dimensions (for instance terminal or iterm and any other app that have weird behaviour when very narrow).
Grouping by stackId is buggy. Assumption to make stackId based on x+y+w+h is incorrect, as some windows can have different dimensions (for instance terminal or iterm and any other app that have weird behaviour when very narrow).
You're absolutely right that grouping by stackId (which is really just a string representation of the window frame) is not always reliable, and it's good to call it out here so that others know.
My personal, interim solution for this is to not make stacks that are very narrow. The minimum window size in macOS is generally an annoyance, and that continues to e true here.
UPD: Nah naive fix makes it more buggy :/
Yep :-) We'll want to continue filtering out stacks that only contain 1 window.
I do have an idea for how we can improve this, though:
Fuzz the stackId. It would be relatively simple to just round window dimensions to the nearest number divisible by 5 (or 10), right before stringifying the window frame into the stackId. This would probably fix the issue, and be unlikely to produce false positives. It would still fail with really skinny stacks that are more than fuzzFactor less than one of the windows' minimum size, but I'm inclined to just call this out as an unsupported case.
changed the title [-]Iterm icon is not visible[/-][+]Indicator not shown when stack width < minimum width of stacked window. [Original: Iterm icon is not visible][/+]on Sep 1, 2020
Activity
AdamWagner commentedon Sep 1, 2020
@Coobaha Thanks for the issue.
You're absolutely right that grouping by stackId (which is really just a string representation of the window frame) is not always reliable, and it's good to call it out here so that others know.
My personal, interim solution for this is to not make stacks that are very narrow. The minimum window size in macOS is generally an annoyance, and that continues to e true here.
Yep :-) We'll want to continue filtering out stacks that only contain 1 window.
I do have an idea for how we can improve this, though:
Fuzz the
stackId. It would be relatively simple to just round window dimensions to the nearest number divisible by 5 (or 10), right before stringifying the window frame into the stackId. This would probably fix the issue, and be unlikely to produce false positives. It would still fail with really skinny stacks that are more thanfuzzFactorless than one of the windows' minimum size, but I'm inclined to just call this out as an unsupported case.What do you think about ↑ ?
[-]Iterm icon is not visible[/-][+]Indicator not shown when stack width < minimum width of stacked window. [Original: Iterm icon is not visible][/+]Coobaha commentedon Sep 1, 2020
@AdamWagner yea this probably should fix it, great idea!