mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:24:24 +02:00
Merge pull request #7208 from ZappoMan/showOverlayOnMenuPopup
Show overlay on menu popup
This commit is contained in:
commit
a275d95c59
1 changed files with 1 additions and 0 deletions
|
@ -460,6 +460,7 @@ void OffscreenUi::unfocusWindows() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void OffscreenUi::toggleMenu(const QPoint& screenPosition) {
|
void OffscreenUi::toggleMenu(const QPoint& screenPosition) {
|
||||||
|
emit showDesktop(); // we really only want to do this if you're showing the menu, but for now this works
|
||||||
auto virtualPos = mapToVirtualScreen(screenPosition, nullptr);
|
auto virtualPos = mapToVirtualScreen(screenPosition, nullptr);
|
||||||
QMetaObject::invokeMethod(_desktop, "toggleMenu", Q_ARG(QVariant, virtualPos));
|
QMetaObject::invokeMethod(_desktop, "toggleMenu", Q_ARG(QVariant, virtualPos));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue