Skip to content

Negative margin-bottom not working anymore. #2642

@patrick96

Description

@patrick96

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions