Skip to content

fix(visual): stop fixture window from covering Linux bottom panels#32

Merged
afonsojramos merged 3 commits into
mainfrom
move-window-away-from-tray-panel
May 12, 2026
Merged

fix(visual): stop fixture window from covering Linux bottom panels#32
afonsojramos merged 3 commits into
mainfrom
move-window-away-from-tray-panel

Conversation

@afonsojramos
Copy link
Copy Markdown
Member

Summary

After #31 made the fixture window opaque white (to fix GNOME bleed-through), Budgie and Cinnamon started failing: their default panels are at the bottom of the screen, and our window snaps to the bottom-right corner (because tray.getBounds() returns {0,0,0,0} on Linux SNI, so menubar's Positioner falls back). The opaque white window now sits right on top of the tray icon → exactTray=0, test fails. KDE Plasma showed the same hang/failure pattern.

Previously the window was transparent (Electron default on Linux) so the tray showed through.

Fix: explicitly mb.window.setPosition(400, 200) after showWindow(). Mid-screen placement guarantees no overlap with any panel (top or bottom) on any platform. On macOS/Windows the visual diff just moves where the white box appears in the masked screenshot — relative position doesn't matter for diffing.

Test plan

  • Budgie + Cinnamon now pass tray detection
  • KDE Plasma completes in normal ~3min instead of hanging
  • Other platforms unchanged

@afonsojramos afonsojramos merged commit a0c0890 into main May 12, 2026
41 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant