wayland/platformmenu: fix flipped positions and submenu y positions

This commit is contained in:
outfoxxed 2024-07-19 02:55:38 -07:00
parent 6367b56f55
commit aa3f7daea2
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 34 additions and 2 deletions

View file

@ -104,6 +104,8 @@ bool PlatformMenuEntry::display(QObject* parentWindow, int relativeX, int relati
this->qmenu->createWinId();
this->qmenu->windowHandle()->setTransientParent(window);
// Skips screen edge repositioning so it can be left to the compositor on wayland.
this->qmenu->targetPosition = point;
this->qmenu->popup(point);
return true;