awesomeWM / awesome

awesome window manager
https://awesomewm.org/
GNU General Public License v2.0
6.39k stars 598 forks source link

Horizontal layout midle alignment does not work in awesome 4 (but used to work in 3.5) #1815

Closed ThePinkPanther closed 7 years ago

ThePinkPanther commented 7 years ago

Output of awesome --version:

awesome v4.0 (Harder, Better, Faster, Stronger) • Compiled against Lua 5.1.5 (running with Lua 5.1) • D-Bus support: ✔ • execinfo support: ✔ • RandR 1.5 support: ✘ • LGI version: 0.9.1

How to reproduce the issue:

Checkout my awesome configuration from here: https://github.com/ThePinkPanther/MinimalAwesome

Actual result:

set_middle aligns on the left instead of center in horizontal layout, but the same configuration used to work in Awesome 3.5

I described in this SO question: https://stackoverflow.com/questions/44349147/awesome-wm-4-middle-align-does-not-work-in-horizontal-layout

Expected result:

set_middle should align component in the middle of it's layout

psychon commented 7 years ago

Set expand to outside for your align layout: https://awesomewm.org/doc/api/classes/wibox.layout.align.html#wibox.layout.align.expand

ThePinkPanther commented 7 years ago

Thanks a lot