svenstaro / wmfocus

Visually focus windows by label
MIT License
219 stars 20 forks source link

margin argument is not used (used value is just hardcoded) #344

Open saurik opened 5 months ago

saurik commented 5 months ago

The --margin argument is assigned to a field margin.

https://github.com/svenstaro/wmfocus/blob/241bac97774727db813af428571b34e3fb85388c/src/args.rs#L128-L130

But margin_factor is just the hard-coded value of 0.2.

https://github.com/svenstaro/wmfocus/blob/241bac97774727db813af428571b34e3fb85388c/src/main.rs#L87

The only three lines of code which are returned by a git grep -w margin are the three lines which set and document the field: there are no uses.