Skip to content

🐛 fix(mangowm): open the power menu again on mango 0.18 - #11

Merged
anthonyportugal merged 2 commits into
mainfrom
fix/wlogout-open
Nov 14, 2026
Merged

anthonyportugal merged 2 commits into
mainfrom
fix/wlogout-open

Conversation

@anthonyportugal

Copy link
Copy Markdown
Owner

The power menu (Super+X and the Waybar power button) stopped opening.

Cause

On mango 0.18.5, wlogout's layer-shell surface stays invisible on every output when it gets --no-span -P <monitor>, whatever the CSS. The CSS from before #10 reproduces it, so #10 did not cause it.

Fix

  • power-menu no longer passes --no-span or -P. The compositor puts the menu on the focused output, centred by the existing margins, and dims the other monitor.
  • The active monitor's size now comes from mmsg get all-monitors with jq, a dependency of the layer, instead of Python with GDK. The menu still falls back to 1920x1080.

Testing

  • layers/wm/mangowm/tests/waybar-smoke.sh fails if wlogout gets --no-span or -P. It also checks that it uses layer-shell and the margins of the active monitor.
  • On the host (mango 0.18.5, DP-1 + HDMI-A-1), the menu opens on the focused DP-1 and a second press closes it.
  • tests/smoke.sh passes.

With --no-span and -P, wlogout's layer-shell surface stayed invisible on every output. Without them the compositor puts it on the focused output, where the margins already centre it. The monitor size now comes from mmsg and jq instead of Python and GDK.
@anthonyportugal
anthonyportugal merged commit 4b661c1 into main Nov 14, 2026
6 checks passed
@anthonyportugal
anthonyportugal deleted the fix/wlogout-open branch November 14, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant