hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.06k stars 32 forks source link

Fixed bar module width #77

Closed Jovvik closed 2 years ago

Jovvik commented 2 years ago

CStatusBar::getTextWidth does not respect whitespace symbols at the start or the end of modules, this PR fixes this.

As an example, for module=center,foo,0xffffffff,0xff000000,1000, bar (note the space before "bar"): Before: image After: image

vaxerski commented 2 years ago

lgtm, thank you!