wayland/platformmenu: fix flipped positions and submenu y positions

This commit is contained in:
outfoxxed committed 2024-07-19 02:55:38 -07:00
1 parent 6367b56f55
commit aa3f7daea2
3 files changed
+34 -2

No files matched your search

+2
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;