xdg_popup can be positioned offscreen
When running maximized Chromium (any version, afaict) as a native Wayland app under Weston, the submenus of the three dot menu are positioned offscreen.
Affected Weston versions
I could reproduce this with Weston 10.0.5, 11.0.0, 12.0.2, and the latest main commit (d9a80735).
Steps to reproduce
- Run
chromium --ozone-platform=wayland --start-maximized
- Click on the three dots in the top right to open the menu
- Hover over the menu's "History" entry
Expected behaviour
The popup for the "History" submenu is positioned to the left of the parent menu's popup.
Actual behaviour
The popup for the submenu is positioned offscreen.
In newer versions of Chromium it's difficult to notice, but the following screenshot using Chromium 113 shows the very left edge of the popup at the edge of the screen: