-
-
Notifications
You must be signed in to change notification settings - Fork 717
Closed
Description
Discussed in #2641
Originally posted by PedroLima92 March 14, 2022
I have in my config
[global/wm]
margin-bottom = -12
but after updating polybar to 3.6.1
that is not being imposed. Positive values work fine, but negative values are the same as inputting zero.
Anyone else noticed it? Is there another way to get a similar behavior?
The strut values were never intended to be negative (they are stored as unsigned int
), in earlier versions it just worked but it probably invoked undefined behavior (or at least implementation defined behavior).
We should explicitly allow negative margin values but cap the effective strut values at 0.