Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.24k stars 96 forks source link

`--center` flag not working on kwin and smithay, `-W` flag not working on smithay #422

Open itshog opened 3 months ago

itshog commented 3 months ago

The --center flag seems to be ignored by compositors not using wlroots, such as plasma's kwin and compositors using smithay (like niri). As far as I understand, those compositors fully implement the layer shell protocol, so they should meet the requirements for running bemenu. Is the --center flag specific to wlroots?

The -W flag instead doesn't work under smithay compositors, while it works as expected in plasma (so it may be an issue on smithay's end, I don't know).

See https://github.com/YaLTeR/niri/issues/575

itshog commented 3 months ago

As a side note, both anchoring and sizing work properly under kwin and smithay compositors when using fuzzel, so maybe there's a way to implement these options in a more "generic" way which works across wlroots, kwin and smithay at the same time.

See this commit for the fix in fuzzel and an explanation of the bug (basically, instead of specifying all anchors to center the surface, as bemenu does, it should specify no anchor at all)

ludg1e commented 2 months ago

Can confirm under KDE Plasma 6.1 on Fedora 40